System.ServiceModel.Http2Protocol.Http2Protocol.Close C# (CSharp) Method

Close() public method

Initiates the Http2 close handshake.
public Close ( StatusCode reason, int lastSeenStreamId ) : void
reason StatusCode the status code.
lastSeenStreamId int the last stream id.
return void
        public void Close(StatusCode reason, int lastSeenStreamId)
        {
            if (this.opened)
            {
                //Server must not send goAway to already closed from client side socket
                CloseInternal(reason, lastSeenStreamId, !isServer);
            }
        }