예제 #1
0
 private void Execute(object state)
 {
     ThreadContext.SetWithExceptionHandling("LocalRequest.Execute", base.Application.Worker, base.ClientContext, base.RequestLogger, delegate
     {
         this.ExecuteInternal((BaseQuery)state);
     });
 }
예제 #2
0
 public sealed override void BeginInvoke(TaskCompleteCallback callback)
 {
     if (this.ShouldCallBeginInvokeByNewThread)
     {
         ThreadPool.QueueUserWorkItem(delegate(object dummy)
         {
             ThreadContext.SetWithExceptionHandling(this.traceLabel + "ByNewThread", this.Application.Worker, this.ClientContext, this.RequestLogger, delegate
             {
                 this.BeginInvokeInternal(callback);
             });
         });
         return;
     }
     this.BeginInvokeInternal(callback);
 }
예제 #3
0
 protected void Complete(IAsyncResult asyncResult)
 {
     if (this.asyncResult == null)
     {
         this.asyncResult = asyncResult;
     }
     if (this.CompleteAtomically())
     {
         if (asyncResult.CompletedSynchronously)
         {
             this.CompleteInternal();
             return;
         }
         ThreadContext.SetWithExceptionHandling(this.traceLabel, base.Application.IOCompletion, base.ClientContext, base.RequestLogger, new ThreadContext.ExecuteDelegate(this.CompleteInternal));
     }
 }
예제 #4
0
 private void CompleteAsync(object notUsed)
 {
     ThreadContext.SetWithExceptionHandling(this.traceLabel, base.Application.Worker, base.ClientContext, base.RequestLogger, new ThreadContext.ExecuteDelegate(this.Complete));
 }
예제 #5
0
 private static void RefreshTimer(object notUsed)
 {
     ThreadContext.SetWithExceptionHandling("ConfigurationReader.RefreshTimer", DummyApplication.Instance.Worker, null, null, new ThreadContext.ExecuteDelegate(ConfigurationReader.Refresh));
 }