protected Session() { Thread = new(StartInternal); PipeScheduler = new(); PipeOptions options = new( readerScheduler : PipeScheduler, writerScheduler : PipeScheduler, useSynchronizationContext : false ); RecvPipe = new(options); }
protected Session(ILogger logger) { this.logger = logger; thread = new Thread(StartInternal); pipeScheduler = new QueuedPipeScheduler(); var options = new PipeOptions( readerScheduler: pipeScheduler, writerScheduler: pipeScheduler, useSynchronizationContext: false ); recvPipe = new Pipe(options); }