public void Warn(Notification <string> notification) { if (null == notification) { throw new ArgumentNullException(nameof(notification)); } string prefix = ConsoleMonitor.ComposePrefix <string>(notification); Console.WriteLine( SystemForCrossDomainIdentityManagementServiceResources.MonitorOutputTemplate, prefix, notification.Message); }
public void Report(IExceptionNotification notification) { if (null == notification) { throw new ArgumentNullException(nameof(notification)); } string prefix = ConsoleMonitor.ComposePrefix <Exception>(notification); Console.WriteLine( SystemForCrossDomainIdentityManagementServiceResources.MonitorOutputExceptionTemplate, prefix, notification.Message, notification.Critical); }