Ejemplo n.º 1
0
 public CustomControllerBase(INotificationHandler <DomainErrorNotification> notifications,
                             IMediatorHandler bus)
 {
     _notifications = (DomainErrorHandler)notifications;
     _bus           = bus;
 }
Ejemplo n.º 2
0
 public CommandHandler(IMediatorHandler bus, IRepository <TEntity> repository, INotificationHandler <DomainErrorNotification> notifications)
 {
     _bus           = bus;
     _repository    = repository;
     _notifications = (DomainErrorHandler)notifications;
 }