Exemplo n.º 1
0
 public NotificationService()
 {
     this._processed    = new List <int>();
     this._timer        = new Timer();
     this.Logger        = new MongoDbLogger();
     this.Configuration = XNotifyConfigSection.GetSection();
     this.Name          = Configuration.Name;
     this.Description   = Configuration.Description;
 }
Exemplo n.º 2
0
 public static void Log(this INotificationLogger logger, Exception exception)
 {
     logger.Log(new LogEntry(LoggingEventType.Error, exception.Message, null, exception));
 }
Exemplo n.º 3
0
 public static void Log(this INotificationLogger logger, string message)
 {
     logger.Log(new LogEntry(LoggingEventType.Info, message, null, null));
 }