protected void WaitForChannel(IChannelListener listener, bool async, TimeSpan timeout) { bool ret = false; if (async) { IAsyncResult result = listener.BeginWaitForChannel(timeout, null, null); ret = listener.EndWaitForChannel(result); } else { ret = listener.WaitForChannel(timeout); } this.Results.Add(String.Format("WaitForChannel returned {0}", ret)); }
protected override bool OnEndWaitForChannel(IAsyncResult result) { return(inner.EndWaitForChannel(result)); }
public override bool EndWaitForChannel(IAsyncResult result) { return(_innerListener.EndWaitForChannel(result)); }
/// <summary> /// OnEndWaitForChannel /// </summary> /// <param name="result"></param> /// <returns></returns> protected override bool OnEndWaitForChannel(IAsyncResult result) { WCFLogger.Write(TraceEventType.Verbose, "ChannelListener ends wait for channel"); return(innerChannelListener.EndWaitForChannel(result)); }