Esempio n. 1
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));
        }
Esempio n. 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));
        }
Esempio n. 3
0
 protected override bool OnEndWaitForChannel(IAsyncResult result)
 {
     return(inner.EndWaitForChannel(result));
 }
Esempio n. 4
0
 public override bool EndWaitForChannel(IAsyncResult result)
 {
     return(_innerListener.EndWaitForChannel(result));
 }
Esempio n. 5
0
 /// <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));
 }