public bool EndWaitForRequest(IAsyncResult result) { WaitForRequestAsyncResult <TChannel> result2 = result as WaitForRequestAsyncResult <TChannel>; if (result2 != null) { return(result2.End()); } CompletedAsyncResult.End(result); return(true); }
public bool EndWaitForRequest(IAsyncResult result) { WaitForRequestAsyncResult waitForRequestResult = result as WaitForRequestAsyncResult; if (waitForRequestResult != null) { return(waitForRequestResult.End()); } else { CompletedAsyncResult.End(result); return(true); } }