C# 클래스 CSMongo.Requests.RequestBase

Base class for making requests to the server
파일 보기 프로젝트 열기: hugoware/CSMongo 1 사용 예제들

공개 메소드들

메소드 설명
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