C# Класс CSMongo.Requests.RequestBase

Base class for making requests to the server
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetBody ( ) : byte[]

Returns the bytes that should be sent as a header

GetHeader ( ) : byte[]

Returns the bytes to send as a header for this request

OnResponse ( Stream stream ) : ResponseBase
RequestBase ( OpCodeTypes code ) : System

Creates a new request for the specified type

Reset ( ) : void

Resets the bytes for this request

Защищенные методы

Метод Описание
GenerateBody ( DynamicStream stream ) : void

Required function to generate the content for sending

OnBeforeGenerateStream ( ) : void

Optional functionality to perform before generating the stream content

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

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

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

GenerateBody() защищенный абстрактный Метод

Required function to generate the content for sending
protected abstract GenerateBody ( DynamicStream stream ) : void
stream CSMongo.IO.DynamicStream
Результат void

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

Returns the bytes that should be sent as a header
public GetBody ( ) : byte[]
Результат byte[]

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

Returns the bytes to send as a header for this request
public GetHeader ( ) : byte[]
Результат byte[]

OnBeforeGenerateStream() защищенный Метод

Optional functionality to perform before generating the stream content
protected OnBeforeGenerateStream ( ) : void
Результат void

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

public OnResponse ( Stream stream ) : ResponseBase
stream Stream
Результат ResponseBase

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

Creates a new request for the specified type
public RequestBase ( OpCodeTypes code ) : System
code OpCodeTypes
Результат System

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

Resets the bytes for this request
public Reset ( ) : void
Результат void