File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
daprdocs/content/en/dotnet-sdk-docs/dotnet-actors Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ Define `IMyActor` interface and `MyData` data object. Paste the following code i
81
81
82
82
``` csharp
83
83
using Dapr .Actors ;
84
+ using Dapr .Actors .Runtime ;
84
85
using System .Threading .Tasks ;
85
86
86
87
namespace MyActor .Interfaces
@@ -91,6 +92,7 @@ namespace MyActor.Interfaces
91
92
Task <MyData > GetDataAsync ();
92
93
Task RegisterReminder ();
93
94
Task UnregisterReminder ();
95
+ Task <IActorReminder > GetReminder ();
94
96
Task RegisterTimer ();
95
97
Task UnregisterTimer ();
96
98
}
@@ -219,6 +221,14 @@ namespace MyActorService
219
221
TimeSpan .FromSeconds (5 )); // Time interval between reminder invocations after the first invocation
220
222
}
221
223
224
+ /// <summary >
225
+ /// Get MyReminder reminder details with the actor
226
+ /// </summary >
227
+ public async Task <IActorReminder > GetReminder ()
228
+ {
229
+ await this .GetReminderAsync (" MyReminder" );
230
+ }
231
+
222
232
/// <summary >
223
233
/// Unregister MyReminder reminder with the actor
224
234
/// </summary >
You can’t perform that action at this time.
0 commit comments