public BaseWebSocketConnection(Domain.ExecutionContext context, WebSocket webSocket, string ip, int inBufferSize, int outBufferSize)
            : base(context)
        {
            this.webSocket = webSocket ?? throw new ArgumentNullException(nameof(webSocket));
            Ip             = ip;

            incommingBuffer = XdrBufferFactory.Rent(inBufferSize);
            outgoingBuffer  = XdrBufferFactory.Rent(outBufferSize);

            cancellationTokenSource = new CancellationTokenSource();
            cancellationToken       = cancellationTokenSource.Token;
        }
Example #2
0
 public StartupBase(Domain.ExecutionContext context)
 {
     Context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public MessageHandlers(ExecutionContext context)
     : base(context)
 {
 }