protected AggregateHandlers(string streamPrefix, IAggregateRepositoryFactory repoFactory)
 {
     this.streamPrefix = streamPrefix;
     this.repoFactory = repoFactory;
     that = this;
 }
Пример #2
0
 public Handlers(IAggregateRepositoryFactory repoFactory, IMailService mailService)
 {
     var streamPrefix = Client.Settings.ServiceStreamPrefix;
     this.RegisterCommands(new MailAgg.Handlers(streamPrefix, repoFactory, mailService), typeof(SendMail), typeof(RetryMail));
 }
Пример #3
0
 public Handlers(string streamPrefix, IAggregateRepositoryFactory repoFactory, IMailService mailService)
     : base(streamPrefix, repoFactory)
 {
     this.mailService = mailService;
 }