Пример #1
0
 public void DomainNotify(DomainNotification args)
 {
     foreach (var handler in ServiceProvider.GetServices <IDomainNotificationContext <DomainNotification> >())
     {
         handler.AddNotification(args);
     }
 }
 public static void DomainNotify(DomainNotification args)
 {
     if (_serviceProvider != null)
     {
         foreach (var handler in _serviceProvider.GetServices <IDomainNotificationHandler <DomainNotification> >())
         {
             handler.Handle(args);
         }
     }
 }