Exemplo n.º 1
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged
 /// resources.
 /// </summary>
 /// <param name="disposing">True to release both managed and unmanaged resources; false to release
 /// only unmanaged resources.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing && this.manager != null)
     {
         try
         {
             base.Dispose(disposing);
         }
         finally
         {
             try
             {
                 this.manager.EndExecutionContextScope(this);
             }
             finally
             {
                 this.manager = null;
             }
         }
     }
 }
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged 
 /// resources.
 /// </summary>
 /// <param name="disposing">True to release both managed and unmanaged resources; false to release 
 /// only unmanaged resources.</param>
 protected override void Dispose(bool disposing)
 {
     try
     {
         base.Dispose(disposing);
     }
     finally
     {
         if (disposing && this.manager != null)
         {
             try
             {
                 this.manager.EndExecutionContextScope(this);
             }
             finally
             {
                 this.manager = null;
             }
         }
     }
 }
 internal ExecutionContextScope(ExecutionContextScopeManager manager, ExecutionContextScope parentScope)
     : base(manager.Container)
 {
     this.manager     = manager;
     this.ParentScope = parentScope;
 }
 internal ExecutionContextScope(ExecutionContextScopeManager manager, ExecutionContextScope parentScope)
 {
     this.manager     = manager;
     this.ParentScope = parentScope;
 }
 internal ExecutionContextScope(ExecutionContextScopeManager manager, ExecutionContextScope parentScope)
 {
     this.manager = manager;
     this.ParentScope = parentScope;
 }
 internal ExecutionContextScope(ExecutionContextScopeManager manager, ExecutionContextScope parentScope)
     : base(manager.Container)
 {
     this.manager = manager;
     this.ParentScope = parentScope;
 }