示例#1
0
 public ArticleUserService(IMapper mapper,
                           IMediatorHandler bus,
                           INotificationHandler <DomainErrorNotification> notificationHandler)
 {
     this._mapper = mapper;
     this._bus    = bus;
     this._notificationHandler = notificationHandler as DomainErrorNotificationHandler;
 }
示例#2
0
 public ArticleService(IArticleRepository articleRepository,
                       IMapper mapper,
                       IMediatorHandler bus,
                       INotificationHandler <DomainErrorNotification> notificationHandler)
 {
     _articleRepository        = articleRepository;
     this._mapper              = mapper;
     this._bus                 = bus;
     this._notificationHandler = notificationHandler as DomainErrorNotificationHandler;
 }