From f4e02df980072438ad225b75412f779df67936a0 Mon Sep 17 00:00:00 2001 From: Shivam Kumar Date: Sat, 22 Jul 2023 02:45:42 +0530 Subject: [PATCH] adding get actor reminder API in docs (#1113) Signed-off-by: Shivam Kumar --- .../dotnet-actors/dotnet-actors-howto.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/daprdocs/content/en/dotnet-sdk-docs/dotnet-actors/dotnet-actors-howto.md b/daprdocs/content/en/dotnet-sdk-docs/dotnet-actors/dotnet-actors-howto.md index 5b79d6b8f..ab41c3917 100644 --- a/daprdocs/content/en/dotnet-sdk-docs/dotnet-actors/dotnet-actors-howto.md +++ b/daprdocs/content/en/dotnet-sdk-docs/dotnet-actors/dotnet-actors-howto.md @@ -81,6 +81,7 @@ Define `IMyActor` interface and `MyData` data object. Paste the following code i ```csharp using Dapr.Actors; +using Dapr.Actors.Runtime; using System.Threading.Tasks; namespace MyActor.Interfaces @@ -91,6 +92,7 @@ namespace MyActor.Interfaces Task GetDataAsync(); Task RegisterReminder(); Task UnregisterReminder(); + Task GetReminder(); Task RegisterTimer(); Task UnregisterTimer(); } @@ -219,6 +221,14 @@ namespace MyActorService TimeSpan.FromSeconds(5)); // Time interval between reminder invocations after the first invocation } + /// + /// Get MyReminder reminder details with the actor + /// + public async Task GetReminder() + { + await this.GetReminderAsync("MyReminder"); + } + /// /// Unregister MyReminder reminder with the actor ///