public override async Task UnregisterReminderAsync(ActorReminderToken reminder)
        {
            if (reminder == null)
            {
                throw new ArgumentNullException(nameof(reminder));
            }

            await this.interactor.UnregisterReminderAsync(reminder.ActorType, reminder.ActorId.ToString(), reminder.Name);
        }
示例#2
0
        /// <summary>
        /// Unregisters a reminder previously registered using <see cref="Dapr.Actors.Runtime.Actor.RegisterReminderAsync" />.
        /// </summary>
        /// <param name="reminderName">The actor reminder name to unregister.</param>
        /// <returns>
        /// Returns a task that represents the asynchronous unregistration operation.
        /// </returns>
        protected Task UnregisterReminderAsync(string reminderName)
        {
            var token = new ActorReminderToken(this.actorTypeName, this.Id, reminderName);

            return(this.Host.TimerManager.UnregisterReminderAsync(token));
        }
 public override Task UnregisterReminderAsync(ActorReminderToken reminder)
 {
     throw new NotImplementedException(Message);
 }
示例#4
0
 /// <summary>
 /// Unregisters the provided reminder with the runtime.
 /// </summary>
 /// <param name="reminder">The <see cref="ActorReminderToken" /> to unregister.</param>
 /// <returns>A task which will complete when the operation completes.</returns>
 public abstract Task UnregisterReminderAsync(ActorReminderToken reminder);