C# Класс System.ServiceModel.Http2Protocol.ProtocolSession

Speed+Mobility Session
Наследование: IDisposable, IStreamStore
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
MaxWindowBalance UInt32

Private Properties

Свойство Тип Описание
GenerateNewStreamId int
OnCloseStream void
OnProtocolClose void
OnProtocolError void
OnProtocolOpen void
OnProtocolPing void
OnSessionFrame void
OpenStream Http2Stream

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

Метод Описание
Dispose ( ) : void

Disposes the instance.

End ( ) : void

Ends the session.

End ( StatusCode reason ) : void

Ends the sessions.

GetStreamById ( int streamId ) : Http2Stream

returns stream by id.

Open ( ) : void

Opens the sessions.

OpenStream ( ProtocolHeaders headers, bool isFinal ) : Http2Stream

Opens the stream in current session.

Ping ( int streamId ) : void

Sends ping.

ProtocolSession ( SecureSocket socket, ProtocolOptions options ) : System.Collections.Generic

Initializes a new instance of the ProtocolSession class.

ProtocolSession ( Uri uri ) : System.Collections.Generic

Initializes a new instance of the ProtocolSession class.

ProtocolSession ( Uri uri, bool isServer, ProtocolOptions options ) : System.Collections.Generic

Initializes a new instance of the ProtocolSession class.

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

Метод Описание
GenerateNewStreamId ( ) : int

returns new stream id.

OnCloseStream ( object sender, System.ServiceModel.Http2Protocol.RSTEventArgs e ) : void

Event handler for close stream.

OnProtocolClose ( object sender, System.ServiceModel.Http2Protocol.CloseFrameEventArgs e ) : void

Event handler for close.

OnProtocolError ( object sender, System.ServiceModel.Http2Protocol.ProtocolErrorEventArgs e ) : void

Event handler for error.

OnProtocolOpen ( object sender, EventArgs e ) : void

Event handler for open.

OnProtocolPing ( object sender, EventArgs e ) : void

Event handler for Ping.

OnSessionFrame ( object sender, ControlFrameEventArgs e ) : void

Event handler for session frame.

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

Opens the stream in current session.

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

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

Disposes the instance.
public Dispose ( ) : void
Результат void

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

Ends the session.
public End ( ) : void
Результат void

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

Ends the sessions.
public End ( StatusCode reason ) : void
reason StatusCode The reason.
Результат void

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

returns stream by id.
public GetStreamById ( int streamId ) : Http2Stream
streamId int Stream Id.
Результат Http2Stream

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

Opens the sessions.
public Open ( ) : void
Результат void

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

Opens the stream in current session.
public OpenStream ( ProtocolHeaders headers, bool isFinal ) : Http2Stream
headers ProtocolHeaders The S+M headers.
isFinal bool the final flag.
Результат Http2Stream

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

Sends ping.
public Ping ( int streamId ) : void
streamId int
Результат void

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

Initializes a new instance of the ProtocolSession class.
public ProtocolSession ( SecureSocket socket, ProtocolOptions options ) : System.Collections.Generic
socket Org.Mentalis.Security.Ssl.SecureSocket
options ProtocolOptions Session options.
Результат System.Collections.Generic

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

Initializes a new instance of the ProtocolSession class.
public ProtocolSession ( Uri uri ) : System.Collections.Generic
uri Uri the URI.
Результат System.Collections.Generic

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

Initializes a new instance of the ProtocolSession class.
public ProtocolSession ( Uri uri, bool isServer, ProtocolOptions options ) : System.Collections.Generic
uri Uri the URI.
isServer bool the Server flag.
options ProtocolOptions Session options.
Результат System.Collections.Generic

Описание свойств

MaxWindowBalance публичное свойство

Is a special value that designates "infinite".
public UInt32 MaxWindowBalance
Результат UInt32