コード例 #1
0
 /// <summary>
 /// The dispose.
 /// </summary>
 public void Dispose()
 {
     // We don't actually have anything to do here since a new session
     //  will use a new UOW and force loading of new aggregates.
     _unitOfWork = null;
 }
コード例 #2
0
 /// <summary>
 /// Initialises a new instance of the <see cref="UnitOfWorkSession" /> class.
 /// </summary>
 /// <param name="container">
 /// The container.
 /// </param>
 /// <param name="scopeOption">
 /// The scope option.
 /// </param>
 /// <param name="scopeTimeout">
 /// The scope timeout.
 /// </param>
 public UnitOfWorkSession(IComponentContext container, TransactionScopeOption scopeOption, TimeSpan scopeTimeout)
 {
     _container  = container;
     _unitOfWork = new CommitableUnitOfWork(container.Resolve <IStoreEvents>());
 }