public override void Dispose() { for (var i = 0; i < MAX_STREAMS_COUNT; i++) { if (_streams[i] == null) { continue; } _streams[i].Dispose(); _streams[i] = null; } //SendMessagesBlock.Complete(); OutputBuffer.Dispose(); base.Dispose(); }