protected override void OnExecute(Envelope envelope) { ThreadPoolFast pool = ThreadPool; if (pool != null) { pool.QueueFastDelegate(this, _singleFastInvokeDelegate, envelope); //ThreadPoolFastEx.TargetInfo targetInfo = new ThreadPoolFastEx.TargetInfo(string.Empty, this, // _singleFastInvokeDelegate, threadPool, envelope); //threadPool.QueueTargetInfo(targetInfo); } }
public override void Dispose() { lock (_syncRoot) { if (_pool != null) { _pool.Dispose(); } _pool = null; } base.Dispose(); }
/// <summary> /// /// </summary> internal void PerformExecution(ThreadPoolFast threadPool, object envelope) { Client.PerformExecution(envelope as Envelope); }