private async Task OnReminderFailedAsync(ReminderItem reminder) { reminder.MarkFailed(); await _storage.UpdateAsync(reminder); ReminderFailed?.Invoke(this, new ReminderEventArgs(reminder)); }
private async Task OnReminderFailedAsync(ReminderItem reminder) { _logger.LogWarning($"Mark reminder {reminder.Id:N} as failed"); reminder.MarkFailed(); await _storage.UpdateAsync(reminder); ReminderFailed?.Invoke(this, new ReminderEventArgs(reminder)); }
private void OnReminderFailed(ReminderItem reminder) { _logger.LogWarning($"Mark reminder {reminder.Id:N} as failed"); reminder.MarkFailed(); ReminderFailed?.Invoke(this, new ReminderEventArgs(reminder)); }