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;
 }