/// <summary> /// Initializes a new instance of the <see cref="MessagingDomainService" /> class. /// </summary> /// <param name="emailAggregateRepository">The email aggregate repository.</param> /// <param name="smsAggregateRepository">The SMS aggregate repository.</param> /// <param name="emailServiceProxy">The email service proxy.</param> /// <param name="smsServiceProxy">The SMS service proxy.</param> public MessagingDomainService(IAggregateRepository <EmailAggregate, DomainEventRecord.DomainEvent> emailAggregateRepository, IAggregateRepository <SMSAggregate, DomainEventRecord.DomainEvent> smsAggregateRepository, IEmailServiceProxy emailServiceProxy, ISMSServiceProxy smsServiceProxy) { this.EmailAggregateRepository = emailAggregateRepository; this.SmsAggregateRepository = smsAggregateRepository; this.EmailServiceProxy = emailServiceProxy; this.SmsServiceProxy = smsServiceProxy; }
/// <summary> /// Initializes a new instance of the <see cref="EmailDomainEventHandler"/> class. /// </summary> /// <param name="aggregateRepository">The aggregate repository.</param> /// <param name="emailServiceProxy">The email service proxy.</param> public EmailDomainEventHandler(IAggregateRepository <EmailAggregate, DomainEventRecord.DomainEvent> aggregateRepository, IEmailServiceProxy emailServiceProxy) { this.AggregateRepository = aggregateRepository; this.EmailServiceProxy = emailServiceProxy; }
/// <summary> /// Initializes a new instance of the <see cref="CommandRouter" /> class. /// </summary> /// <param name="emailServiceProxy">The email service proxy.</param> /// <param name="smsServiceProxy">The SMS service proxy.</param> public CommandRouter(IEmailServiceProxy emailServiceProxy, ISMSServiceProxy smsServiceProxy) { this.EmailServiceProxy = emailServiceProxy; this.SMSServiceProxy = smsServiceProxy; }
/// <summary> /// Initializes a new instance of the <see cref="MessagingCommandHandler" /> class. /// </summary> /// <param name="emailServiceProxy">The email service proxy.</param> /// <param name="smsServiceProxy">The SMS service proxy.</param> public MessagingCommandHandler(IEmailServiceProxy emailServiceProxy, ISMSServiceProxy smsServiceProxy) { this.EmailServiceProxy = emailServiceProxy; this.SMSServiceProxy = smsServiceProxy; }