public DeferredDomainEventsRaiser(IServiceProvider resolver, IDbStateTracker dbState) { _resolver = resolver; _dbState = dbState; _dbState.TransactionComplete += this.Flush; _dbState.Disposing += this.FlushOrClear; }
public DeferredEventDispatcher(IContainer kernel, IDbStateTracker dbState) { _container = kernel; _dbState = dbState; _dbState.TransactionComplete += this.Flush; _dbState.Disposing += this.FlushOrClear; }