Example #1
0
        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);
        }
Example #2
0
        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);
        }