System.ServiceModel.Http2Protocol.ProtocolSession.OpenStream C# (CSharp) Method

OpenStream() public method

Opens the stream in current session.
public OpenStream ( ProtocolHeaders headers, bool isFinal ) : Http2Stream
headers ProtocolHeaders The S+M headers.
isFinal bool the final flag.
return Http2Stream
        public Http2Stream OpenStream(ProtocolHeaders headers, bool isFinal)
        {
            int newId = this.GenerateNewStreamId();
            if (this.State == ProtocolSessionState.Opened)
                return this.OpenStream(newId, headers, isFinal);

            throw new InvalidOperationException("Session is not opened.");
        }

Same methods

ProtocolSession::OpenStream ( int id, ProtocolHeaders headers, bool isFinal ) : Http2Stream