private static void ReminderDomain_SendingFailed(object sender, SendingFailedEventArgs e) { Console.WriteLine( "Reminder {0:N} sending has failed. Exception:\n{1}", e.Reminder.Id, e.Exception); }
private static void DomainOnSendingFailed(object sender, SendingFailedEventArgs e) { Console.ForegroundColor = ConsoleColor.Red; Console.Write("Sending Failed "); Console.ResetColor(); Console.WriteLine( $"Contact {e.Reminder.ContactId} could not receive " + $"message '{e.Reminder.Message}' " + $"at {e.Reminder.Date:f}.\n" + $"Exception: {e.Exception}"); }
public void OnSendingFailed(object sender, SendingFailedEventArgs e) { SendingFailed?.Invoke(sender, e); }
private static void Domain_SendingFailed(object sender, SendingFailedEventArgs e) { Console.WriteLine( $"Sending of item with ID {e.SendingItem.Id} failed with exception {e.SendingException }."); }
private static void Domain_SendingFailed(object sender, SendingFailedEventArgs e) { Console.WriteLine("Reminder sending failed"); }