C# Класс System.ServiceModel.Http2Protocol.ProtocolFrames.FrameBuilder

Class that incapsulates frame building logic.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BuildDataFrame ( Http2Stream stream, ProtocolData data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame

Builds the data frame.

BuildDataFrame ( Http2Stream stream, ProtocolData data, bool final ) : System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame

Builds the data frame.

BuildDataFrame ( int streamId, ProtocolData data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame

Builds the data frame.

BuildGoAwayFrame ( int lastSeenGoodStreamId, StatusCode reason ) : System.ServiceModel.Http2Protocol.ProtocolFrames.GoAwayFrame

Builds the GoAway frame.

BuildHeadersFrame ( Http2Stream stream, ProtocolHeaders headers, bool final ) : ControlFrame

Builds the headers frame.

BuildPingFrame ( int streamId ) : ControlFrame

Builds the Ping frame.

BuildRSTFrame ( Http2Stream stream, StatusCode reason ) : ControlFrame

Builds the RST Frame.

BuildRSTFrame ( int streamId, StatusCode reason ) : ControlFrame

Builds the RST Frame.

BuildSettingsFrame ( Http2Stream stream ) : ControlFrame
BuildSynReplyFrame ( Http2Stream stream, ProtocolHeaders headers ) : ControlFrame

Builds the SYN_REPLY frame.

BuildSynReplyFrame ( int streamId, ProtocolHeaders headers ) : ControlFrame

Builds the SYN_REPLY frame.

BuildSynStreamFrame ( Http2Stream stream, ProtocolHeaders headers, bool final ) : ControlFrame

Builds the SYN_STREAM frame.

BuildSynStreamFrame ( int streamId, ProtocolHeaders headers ) : ControlFrame

Builds the SYN_STREAM frame.

BuildWindowUpdateFrame ( Http2Stream stream, Int64 deltaSize ) : WindowUpdateFrame
BuildWindowUpdateFrame ( int streamId, Int64 deltaSize ) : WindowUpdateFrame

Builds the WindowUpdate Frame.

Приватные методы

Метод Описание
BuildControlFrame ( FrameType type, Http2Stream stream, ProtocolHeaders headers ) : ControlFrame

Builds the control frame.

BuildControlFrame ( FrameType type, int streamId, ProtocolHeaders headers ) : ControlFrame

Builds the control frame.

Описание методов

BuildDataFrame() публичный Метод

Builds the data frame.
public BuildDataFrame ( Http2Stream stream, ProtocolData data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame
stream Http2Stream The stream.
data ProtocolData The data.
Результат System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame

BuildDataFrame() публичный Метод

Builds the data frame.
public BuildDataFrame ( Http2Stream stream, ProtocolData data, bool final ) : System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame
stream Http2Stream The stream.
data ProtocolData The data.
final bool if set to true than this frame is final for the stream.
Результат System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame

BuildDataFrame() публичный Метод

Builds the data frame.
public BuildDataFrame ( int streamId, ProtocolData data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame
streamId int The stream id.
data ProtocolData The data.
Результат System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame

BuildGoAwayFrame() публичный Метод

Builds the GoAway frame.
public BuildGoAwayFrame ( int lastSeenGoodStreamId, StatusCode reason ) : System.ServiceModel.Http2Protocol.ProtocolFrames.GoAwayFrame
lastSeenGoodStreamId int The last seen good stream id.
reason StatusCode The reason of GoAway.
Результат System.ServiceModel.Http2Protocol.ProtocolFrames.GoAwayFrame

BuildHeadersFrame() публичный Метод

Builds the headers frame.
public BuildHeadersFrame ( Http2Stream stream, ProtocolHeaders headers, bool final ) : ControlFrame
stream Http2Stream The stream.
headers ProtocolHeaders The headers.
final bool if set to true than this frame is final for the stream.
Результат ControlFrame

BuildPingFrame() публичный Метод

Builds the Ping frame.
public BuildPingFrame ( int streamId ) : ControlFrame
streamId int
Результат ControlFrame

BuildRSTFrame() публичный Метод

Builds the RST Frame.
public BuildRSTFrame ( Http2Stream stream, StatusCode reason ) : ControlFrame
stream Http2Stream The stream.
reason StatusCode The reason for RST.
Результат ControlFrame

BuildRSTFrame() публичный Метод

Builds the RST Frame.
public BuildRSTFrame ( int streamId, StatusCode reason ) : ControlFrame
streamId int The stream id.
reason StatusCode The reason for RST.
Результат ControlFrame

BuildSettingsFrame() публичный Метод

public BuildSettingsFrame ( Http2Stream stream ) : ControlFrame
stream Http2Stream
Результат ControlFrame

BuildSynReplyFrame() публичный Метод

Builds the SYN_REPLY frame.
public BuildSynReplyFrame ( Http2Stream stream, ProtocolHeaders headers ) : ControlFrame
stream Http2Stream The stream.
headers ProtocolHeaders The headers.
Результат ControlFrame

BuildSynReplyFrame() публичный Метод

Builds the SYN_REPLY frame.
public BuildSynReplyFrame ( int streamId, ProtocolHeaders headers ) : ControlFrame
streamId int The stream id.
headers ProtocolHeaders The headers.
Результат ControlFrame

BuildSynStreamFrame() публичный Метод

Builds the SYN_STREAM frame.
public BuildSynStreamFrame ( Http2Stream stream, ProtocolHeaders headers, bool final ) : ControlFrame
stream Http2Stream The stream.
headers ProtocolHeaders The headers.
final bool Indicates that stream is not going to send any more data.
Результат ControlFrame

BuildSynStreamFrame() публичный Метод

Builds the SYN_STREAM frame.
public BuildSynStreamFrame ( int streamId, ProtocolHeaders headers ) : ControlFrame
streamId int The stream id.
headers ProtocolHeaders The headers.
Результат ControlFrame

BuildWindowUpdateFrame() публичный Метод

public BuildWindowUpdateFrame ( Http2Stream stream, Int64 deltaSize ) : WindowUpdateFrame
stream Http2Stream
deltaSize Int64
Результат WindowUpdateFrame

BuildWindowUpdateFrame() публичный Метод

Builds the WindowUpdate Frame.
public BuildWindowUpdateFrame ( int streamId, Int64 deltaSize ) : WindowUpdateFrame
streamId int
deltaSize Int64
Результат WindowUpdateFrame