public void PublishWith(IPublishDomainEvent publisher)
 {
     if (publisher == null) throw new ArgumentNullException("publisher");
     while (_events.Count > 0)
     {
         publisher.Publish(_events.Dequeue());
     }
 }
Exemple #2
0
 public void PublishWith(IPublishDomainEvent publisher)
 {
     if (publisher == null)
     {
         throw new ArgumentNullException("publisher");
     }
     while (_events.Count > 0)
     {
         publisher.Publish(_events.Dequeue());
     }
 }
Exemple #3
0
 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;
 }