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; }
public static void Log(this INotificationLogger logger, Exception exception) { logger.Log(new LogEntry(LoggingEventType.Error, exception.Message, null, exception)); }
public static void Log(this INotificationLogger logger, string message) { logger.Log(new LogEntry(LoggingEventType.Info, message, null, null)); }