public TransactedActionFilter(ITransactionContext transactionContext, EventDispatchHandler dispatchHandler, ILocalEventsManager domainEvents)
 {
     if (transactionContext == null) throw new ArgumentNullException("transactionContext");
     _transactionContext = transactionContext;
     _dispatchHandler = dispatchHandler;
     _domainEvents = domainEvents;
 }
 public NHibernateDomainEventListener(ILocalEventsManager domainEventStore)
 {
     if (domainEventStore == null)
     {
         throw new ArgumentNullException("domainEventStore");
     }
     _domainEventStore = domainEventStore;
 }
Пример #3
0
 public TransactedActionFilter(ITransactionContext transactionContext, EventDispatchHandler dispatchHandler, ILocalEventsManager domainEvents)
 {
     if (transactionContext == null)
     {
         throw new ArgumentNullException("transactionContext");
     }
     _transactionContext = transactionContext;
     _dispatchHandler    = dispatchHandler;
     _domainEvents       = domainEvents;
 }
Пример #4
0
 public HomeController(IRepository<Forum> forumRepo, ILocalEventsManager events)
 {
     _forumRepo = forumRepo;
     _events = events;
 }
 public NHibernateDomainEventListener(ILocalEventsManager domainEventStore)
 {
     if (domainEventStore == null) throw new ArgumentNullException("domainEventStore");
     _domainEventStore = domainEventStore;
 }
Пример #6
0
 public HomeController(IRepository <Forum> forumRepo, ILocalEventsManager events)
 {
     _forumRepo = forumRepo;
     _events    = events;
 }