public void Close(int requestId) { Worker worker = GetWorker(requestId); if (worker != null) { worker.Close(); } }
/// <summary> /// Closes the request with a specified ID. /// </summary> /// <param name="requestId"> /// A <see cref="int" /> containing the ID of the request. /// </param> /// <remarks> /// <para>See <see cref="Worker.Close" />.</para> /// <para>If the request does not exist, no action is /// taken.</para> /// </remarks> public void Close(int requestId) { // Console.WriteLine ("{0}.Close (0x{1})", this, requestId.ToString ("x")); // Console.WriteLine (Environment.StackTrace); Worker worker = GetWorker(requestId); if (worker != null) { worker.Close(); } }