public void AssignDownstream(ChannelDownstreamRequest downstream) { VerifyNotDisposed(); Require.NotNull(downstream, "downstream"); lock (_syncRoot) { DetachDownstream(); _downstream = downstream; SendMessages(); } }
private void DetachDownstream() { if (_downstream != null) { _downstream.SetAsCompleted(null, false); _downstream = null; } }