コード例 #1
0
            public void run()
            {
                bool correctException = false;

                //
                mtHdl = new MethodTimeoutHandler();
                mtHdl.ApartmentState = this._stackItem.apartmentState;
                mtHdl.ThreadPriority = this._stackItem.priority;
                try {
                    correctException = mtHdl.run(this._stackItem.method, this._stackItem.parameters, this._stackItem.timeout);
                } catch (TimeoutException) {
                    log.Debug("timeout - " + this._stackItem.method.ToString());
                }
                //
                mtHdl = null;
                //
                if (this.Completed != null)
                {
                    this.Completed(this, new EventArgs());
                }
            }
コード例 #2
0
 public void run()
 {
     bool correctException = false;
     //
     mtHdl = new MethodTimeoutHandler();
     mtHdl.ApartmentState = this._stackItem.apartmentState;
     mtHdl.ThreadPriority = this._stackItem.priority;
     try {
        correctException = mtHdl.run(this._stackItem.method, this._stackItem.parameters, this._stackItem.timeout);
     } catch (TimeoutException) {
         log.Debug("timeout - " + this._stackItem.method.ToString());
     }
     //
     mtHdl = null;
     //
     if (this.Completed != null) {
         this.Completed(this, new EventArgs());
     }
 }