protected override IAsyncResult OnBeginWaitForChannel(
     TimeSpan timeout,
     AsyncCallback callback,
     object state
     )
 {
     return(_innerChannelListener.BeginWaitForChannel(timeout, callback, state));
 }
Example #2
0
        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));
        }
Example #3
0
        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));
        }
 public IAsyncResult BeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state)
 {
     return(_innerListener.BeginWaitForChannel(timeout, callback, state));
 }
Example #5
0
 /// <summary>
 /// OnBeginWaitForChannel event
 /// </summary>
 /// <param name="timeout"></param>
 /// <param name="callback"></param>
 /// <param name="state"></param>
 /// <returns></returns>
 protected override IAsyncResult OnBeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state)
 {
     WCFLogger.Write(TraceEventType.Verbose, "ChannelListener begins wait for channel");
     return(innerChannelListener.BeginWaitForChannel(timeout, callback, state));
 }