Ejemplo n.º 1
0
 public void Init(Entities.EntityApp app) {
   _log = app.GetService<INotificationLogService>(); 
   //Create default email notification provider, if there's IEmailSendService registered
   if (_providers.Count == 0) {
     var smtp = _app.GetService<IEmailSendService>();
     if (smtp != null)
       _providers.Add(new EmailNotificationProvider(_app));
   }
   //init providers
   foreach (var prov in _providers)
     prov.Init(app); 
 }