You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/Actor/ActorClient/Program.cs
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,10 @@ public static async Task Main(string[] args)
96
96
receivedData=awaitproxy.GetData();
97
97
Console.WriteLine($"Received data is {receivedData}.");
98
98
99
+
Console.WriteLine("Getting details of the registered reminder");
100
+
varreminder=awaitproxy.GetReminder();
101
+
Console.WriteLine($"Received reminder is {reminder}.");
102
+
99
103
Console.WriteLine("Deregistering timer. Timers would any way stop if the actor is deactivated as part of Dapr garbage collection.");
100
104
awaitproxy.UnregisterTimer();
101
105
Console.WriteLine("Deregistering reminder. Reminders are durable and would not stop until an explicit deregistration or the actor is deleted.");
@@ -105,14 +109,23 @@ public static async Task Main(string[] args)
105
109
awaitproxy.RegisterReminderWithRepetitions(3);
106
110
Console.WriteLine("Waiting so the reminder can be triggered");
107
111
awaitTask.Delay(5000);
112
+
Console.WriteLine("Getting details of the registered reminder");
113
+
reminder=awaitproxy.GetReminder();
114
+
Console.WriteLine($"Received reminder is {reminder}.");
108
115
Console.WriteLine("Registering reminder with ttl and repetitions, i.e. reminder stops when either condition is met - The reminder will repeat 2 times.");
0 commit comments