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()); } }
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()); } }