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 ///