C# Class P2PStateServer.SetRequest

Represents the SetRequest message
The SetRequest is sent by a client (web server) to a state server to store or update session data. This message is only sent from a client to a state server.
Inheritance: ServiceRequest
Show file Open project: tenor/p2pStateServer Class Usage Examples

Public Methods

Method Description
Process ( ) : void

Process the message

SetRequest ( HTTPPartialData Data, StateServer Service ) : System

Initializes a new instance of the SetRequest class

Protected Methods

Method Description
BuildResponse ( Type ResponseType, string ResponseMessage, ISessionResponseInfo ResponseInfo, byte Content ) : ResponseData

Generates an appropriate ResponseData object for this message, filled with supplied data

Method Details

BuildResponse() protected method

Generates an appropriate ResponseData object for this message, filled with supplied data
protected BuildResponse ( Type ResponseType, string ResponseMessage, ISessionResponseInfo ResponseInfo, byte Content ) : ResponseData
ResponseType System.Type The Type of the Response message
ResponseMessage string The HTTP response reason phrase
ResponseInfo ISessionResponseInfo The session response information
Content byte The response data
return ResponseData

Process() public method

Process the message
public Process ( ) : void
return void

SetRequest() public method

Initializes a new instance of the SetRequest class
public SetRequest ( HTTPPartialData Data, StateServer Service ) : System
Data HTTPPartialData The HTTPPartialData class to load this instance from
Service StateServer State server instance
return System