Пример #1
0
        public WSOperations(WSBuffers buffers, IWSConnectionParameters options)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options), $"{nameof(options)} is null.");
            }

            if (buffers.IsIncomplete)
            {
                throw new ArgumentException($"{nameof(buffers)} is incomplete", nameof(buffers));
            }

            Stream = options.Stream;
            Buffer = buffers.ByteBuffer;
        }
Пример #2
0
 public WSConnection(WSBuffers buffers)
 {
     Buffers = buffers;
 }
Пример #3
0
 public WSHTTPConnection(WSBuffers buffers) : base(buffers)
 {
 }