コード例 #1
0
 public void DomainNotify(DomainNotification args)
 {
     foreach (var handler in ServiceProvider.GetServices <IDomainNotificationContext <DomainNotification> >())
     {
         handler.AddNotification(args);
     }
 }
コード例 #2
0
 public static void DomainNotify(DomainNotification args)
 {
     if (_serviceProvider != null)
     {
         foreach (var handler in _serviceProvider.GetServices <IDomainNotificationHandler <DomainNotification> >())
         {
             handler.Handle(args);
         }
     }
 }