Exemple #1
0
 /// <summary>
 /// Initialize using default settings.
 /// </summary>
 public static void Init(IEmailService emailService, NotificationSettings settings)
 {
     _settings           = settings;
     _messageDefinitions = new NotificationDefinitions();
     _queue = new NotificationQueueInMemory(_settings, emailService, _messageDefinitions);
     _accountNotifyService = new NotificationAccountService(_queue, _settings);
     _messageNotifyService = new NotificationMessagingService(_queue, _settings);
 }
Exemple #2
0
 private INotificationMessagingService GetMessageService()
 {
     if (_messageNotifyService == null)
     {
         lock (_syncroot)
         {
             _messageNotifyService          = new NotificationMessagingService(_queue, _settings);
             _messageNotifyService.Settings = _settings;
         }
     }
     return(_messageNotifyService);
 }