Пример #1
0
        private async Task OnReminderSentAsync(ReminderItem reminder)
        {
            reminder.MarkSent();
            await _storage.UpdateAsync(reminder);

            ReminderSent?.Invoke(this, new ReminderEventArgs(reminder));
        }
Пример #2
0
        private async Task OnReminderSentAsync(ReminderItem reminder)
        {
            _logger.LogInformation($"Mark reminder {reminder.Id:N} as sent");
            reminder.MarkSent();
            await _storage.UpdateAsync(reminder);

            ReminderSent?.Invoke(this, new ReminderEventArgs(reminder));
        }
Пример #3
0
 private void OnReminderSent(ReminderItem reminder)
 {
     _logger.LogInformation($"Mark reminder {reminder.Id:N} as sent");
     reminder.MarkSent();
     ReminderSent?.Invoke(this, new ReminderEventArgs(reminder));
 }