C# Class GladNet.Message.RequestMessage

Inheritance: NetworkMessage, IRequestMessage, IRoutableMessage
Afficher le fichier Open project: HelloKitty/GladNet2 Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
DeepClone ( ) : NetworkMessage
Dispatch ( INetworkMessageReceiver receiver, IMessageParameters parameters ) : void

Dispatches the RequestMessage (this) to the supplied INetworkMessageReceiver.

ExportRoutingDataTo ( IRoutableMessage message ) : void
Peek ( ) : int?

Peeks at the routing key this message would use to route. Call Pop to both Peek and Remove the key before sending.

Pop ( ) : int?

Removes a routing key from the message. This key indicates where this message should be forwared to.

Push ( int routingKey ) : void

Pushes a new routing key into the message. This key indicates where a message to this message should be routed back to.

RequestMessage ( PacketPayload payload ) : Easyception

Constructor for RequestMessage that calls NetworkMessage.ctor

Méthodes protégées

Méthode Description
RequestMessage ( ) : Easyception

Protected protobuf-net constructor.

RequestMessage ( NetSendable netSendablePayload ) : Easyception

Protected instructor used for deep cloning the NetworkMessage.

Method Details

DeepClone() public méthode

public DeepClone ( ) : NetworkMessage
Résultat NetworkMessage

Dispatch() public méthode

Dispatches the RequestMessage (this) to the supplied INetworkMessageReceiver.
Throws if either parameters are null.
public Dispatch ( INetworkMessageReceiver receiver, IMessageParameters parameters ) : void
receiver INetworkMessageReceiver The target .
parameters IMessageParameters The of the .
Résultat void

ExportRoutingDataTo() public méthode

public ExportRoutingDataTo ( IRoutableMessage message ) : void
message IRoutableMessage
Résultat void

Peek() public méthode

Peeks at the routing key this message would use to route. Call Pop to both Peek and Remove the key before sending.
public Peek ( ) : int?
Résultat int?

Pop() public méthode

Removes a routing key from the message. This key indicates where this message should be forwared to.
public Pop ( ) : int?
Résultat int?

Push() public méthode

Pushes a new routing key into the message. This key indicates where a message to this message should be routed back to.
public Push ( int routingKey ) : void
routingKey int Unique routing key.
Résultat void

RequestMessage() protected méthode

Protected protobuf-net constructor.
protected RequestMessage ( ) : Easyception
Résultat Easyception

RequestMessage() protected méthode

Protected instructor used for deep cloning the NetworkMessage.
protected RequestMessage ( NetSendable netSendablePayload ) : Easyception
netSendablePayload NetSendable Shallow copy of the PacketPayload for copying.
Résultat Easyception

RequestMessage() public méthode

Constructor for RequestMessage that calls NetworkMessage.ctor
public RequestMessage ( PacketPayload payload ) : Easyception
payload GladNet.Payload.PacketPayload of the .
Résultat Easyception