Beispiel #1
0
        protected virtual uint HandleEventNewStream(ConnectionEvent connectionEvent)
        {
            var msQuicStream = new MsQuicStream(_api, this, _context, connectionEvent.StreamFlags, connectionEvent.Data.NewStream.Stream);

            _acceptQueue.Writer.TryWrite(msQuicStream);

            return(MsQuicConstants.Success);
        }
 public ResettableCompletionSource(MsQuicStream stream)
 {
     _stream = stream;
     _valueTaskSource.RunContinuationsAsynchronously = true;
 }