Пример #1
0
        private void WriteBuffer(IoBuffer buf)
        {
            IWriteRequest writeRequest;

            if (_authenticated)
            {
                writeRequest = new SslFilter.EncryptedWriteRequest(_currentWriteRequest, buf);
            }
            else
            {
                writeRequest = new DefaultWriteRequest(buf);
            }
            _currentNextFilter.FilterWrite(_session, writeRequest);
        }
Пример #2
0
 private void WriteBuffer(IoBuffer buf)
 {
     IWriteRequest writeRequest;
     if (_authenticated)
         writeRequest = new SslFilter.EncryptedWriteRequest(_currentWriteRequest, buf);
     else
         writeRequest = new DefaultWriteRequest(buf);
     _currentNextFilter.FilterWrite(_session, writeRequest);
 }