Esempio n. 1
0
 /// <summary>
 /// Disposes all the components resolved in the current scope.
 /// </summary>
 public void Dispose()
 {
     if (!_isDisposed)
     {
         _isDisposed = true;
         Current     = _priorContext;
         this.Disposed(this, new EventArgs());
     }
 }
 /// <summary>
 /// Disposes all the components resolved in the current scope.
 /// </summary>
 public void Dispose()
 {
     if (!_isDisposed)
     {
         _isDisposed = true;
         Current = _priorContext;
         this.Disposed(this, new EventArgs());
     }
 }
Esempio n. 3
0
 private UnitOfWorkScope()
 {
     this.Disposed += (sender, ev) => { };
     _priorContext  = Current;
     Current        = this;
 }
 private UnitOfWorkScope()
 {
     this.Disposed += (sender, ev) => { };
     _priorContext = Current;
     Current = this;
 }