다음을 통해 공유


IActorStateProvider.SaveReminderAsync Method

Definition

Saves the specified actor ID reminder. If an actor reminder with given name does not exist, it adds the actor reminder otherwise existing actor reminder with same name is updated.

public System.Threading.Tasks.Task SaveReminderAsync (Microsoft.ServiceFabric.Actors.ActorId actorId, Microsoft.ServiceFabric.Actors.Runtime.IActorReminder reminder, System.Threading.CancellationToken cancellationToken = default);
abstract member SaveReminderAsync : Microsoft.ServiceFabric.Actors.ActorId * Microsoft.ServiceFabric.Actors.Runtime.IActorReminder * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SaveReminderAsync (actorId As ActorId, reminder As IActorReminder, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

actorId
ActorId

ID of the actor for which to save the reminder.

reminder
IActorReminder

Actor reminder to save.

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

Returns

A task that represents the asynchronous save operation.

Exceptions

The operation was canceled.

Applies to