Пример #1
0
 public ReceiveAsyncResult(InterceptingInputChannel <TInputChannel> channel, TimeSpan timeout,
                           AsyncCallback callback, object state)
     : base(channel, callback, state)
 {
     this.innerChannel = channel.InnerChannel;
     this.timeout      = timeout;
 }
Пример #2
0
 protected ReceiveAsyncResultBase(InterceptingInputChannel <TInputChannel> channel,
                                  AsyncCallback callback, object state)
     : base(callback, state)
 {
     this.channel   = channel;
     this.onReceive = new AsyncCallback(OnReceive);
 }