private void WriteBuffer(IoBuffer buf) { IWriteRequest writeRequest; if (_authenticated) { writeRequest = new SslFilter.EncryptedWriteRequest(_currentWriteRequest, buf); } else { writeRequest = new DefaultWriteRequest(buf); } _currentNextFilter.FilterWrite(_session, writeRequest); }
private void WriteBuffer(IoBuffer buf) { IWriteRequest writeRequest; if (_authenticated) writeRequest = new SslFilter.EncryptedWriteRequest(_currentWriteRequest, buf); else writeRequest = new DefaultWriteRequest(buf); _currentNextFilter.FilterWrite(_session, writeRequest); }