示例#1
0
 internal ExecutionScope(ClientRuntimeContext context, string name, ExecutionScopeDisposingCallback disposingCallback)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     this.m_context = context;
     this.m_name    = name;
     this.m_id      = this.m_context.NextSequenceId;
     this.m_context.PendingRequest.ExecutionScopes.Push(this);
     this.m_clientActionExecutionScopeStart = new ClientActionExecutionScopeStart(this, this.m_name);
     this.m_context.PendingRequest.AddQuery(this.m_clientActionExecutionScopeStart);
     this.m_disposingCallback = disposingCallback;
 }
示例#2
0
 internal ExceptionHandlingExecutionScope(ClientRuntimeContext context, ExceptionHandlingScope scope, ExecutionScopeDisposingCallback callback) : base(context, "ExceptionHandlingScope", callback)
 {
     this.m_scope = scope;
 }