Exemplo n.º 1
0
    protected Session()
    {
        Thread        = new(StartInternal);
        PipeScheduler = new();
        PipeOptions options = new(
            readerScheduler : PipeScheduler,
            writerScheduler : PipeScheduler,
            useSynchronizationContext : false
            );

        RecvPipe = new(options);
    }
Exemplo n.º 2
0
    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);
    }