Пример #1
0
 public Connection(WebSocket socket, WorkSession session, ImmutableArray <ICommandHandler> handlers, ArrayPool <byte> bufferPool, IConnectionOptions options = null)
 {
     _socket        = socket;
     _session       = session;
     _handlers      = handlers;
     _messageWriter = new FastUtf8JsonWriter(bufferPool);
     _options       = options ?? new MirrorSharpOptions();
     _bufferPool    = bufferPool;
     _inputBuffer   = bufferPool.Rent(InputBufferSize);
 }
 public FastUtf8JsonStringWriter(FastUtf8JsonWriter owner)
 {
     _owner = owner;
 }