C# Class CSMongo.Requests.RequestBase

Base class for making requests to the server
Afficher le fichier Open project: hugoware/CSMongo Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
GenerateBody ( DynamicStream stream ) : void

Required function to generate the content for sending

OnBeforeGenerateStream ( ) : void

Optional functionality to perform before generating the stream content

Private Methods

Méthode Description
_GenerateStream ( ) : void

Method Details

GenerateBody() protected abstract méthode

Required function to generate the content for sending
protected abstract GenerateBody ( DynamicStream stream ) : void
stream CSMongo.IO.DynamicStream
Résultat void

GetBody() public méthode

Returns the bytes that should be sent as a header
public GetBody ( ) : byte[]
Résultat byte[]

GetHeader() public méthode

Returns the bytes to send as a header for this request
public GetHeader ( ) : byte[]
Résultat byte[]

OnBeforeGenerateStream() protected méthode

Optional functionality to perform before generating the stream content
protected OnBeforeGenerateStream ( ) : void
Résultat void

OnResponse() public méthode

public OnResponse ( Stream stream ) : ResponseBase
stream Stream
Résultat ResponseBase

RequestBase() public méthode

Creates a new request for the specified type
public RequestBase ( OpCodeTypes code ) : System
code OpCodeTypes
Résultat System

Reset() public méthode

Resets the bytes for this request
public Reset ( ) : void
Résultat void