public void PublishWith(IPublishDomainEvent publisher) { if (publisher == null) throw new ArgumentNullException("publisher"); while (_events.Count > 0) { publisher.Publish(_events.Dequeue()); } }
public void PublishWith(IPublishDomainEvent publisher) { if (publisher == null) { throw new ArgumentNullException("publisher"); } while (_events.Count > 0) { publisher.Publish(_events.Dequeue()); } }
internal LocalDomainEventsManager(IPublishDomainEvent parent) { _parent = parent; }
public SendWelcomeEmail(IPublishDomainEvent publisher, IRepository <Tasks> tasksRepo) { _publisher = publisher; _tasksRepo = tasksRepo; }
public DrawSubmissionService(DrawDbContext dbContext, IPublishDomainEvent eventPublisher) { _dbContext = dbContext; this.eventPublisher = eventPublisher; }