Beispiel #1
0
 public async Task <CountResult> CancelRemindersAsync(string SessionKey, IEnumerable <Reminder> reminders)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await reminderProcessor.CancelAsync(reminders, token);
         return new CountResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Count = result,
         };
     }, logger));
 }
Beispiel #2
0
 public async Task <int> CancelReminders(IEnumerable <Reminder> reminders, CancellationToken token)
 => await reminderProcessor.CancelAsync(reminders, token);