예제 #1
0
        public void AssignDownstream(ChannelDownstreamRequest downstream)
        {
            VerifyNotDisposed();

            Require.NotNull(downstream, "downstream");

            lock (_syncRoot)
            {
                DetachDownstream();

                _downstream = downstream;

                SendMessages();
            }
        }
예제 #2
0
 private void DetachDownstream()
 {
     if (_downstream != null)
     {
         _downstream.SetAsCompleted(null, false);
         _downstream = null;
     }
 }