C# Класс GladNet.Message.ResponseMessage

Наследование: NetworkMessage, IResponseMessage
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

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

Метод Описание
DeepClone ( ) : NetworkMessage
Dispatch ( INetworkMessageReceiver receiver, IMessageParameters parameters ) : void

Dispatches the ResponseMessage (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.

ResponseMessage ( PacketPayload payload ) : System

Constructor for ResponseMessage that calls NetworkMessage.ctor

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

Метод Описание
ResponseMessage ( ) : System

Protected protobuf-net constructor.

ResponseMessage ( NetSendable netSendablePayload ) : System

Protected instructor used for deep cloning the NetworkMessage.

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

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

public DeepClone ( ) : NetworkMessage
Результат NetworkMessage

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

Dispatches the ResponseMessage (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 .
Результат void

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

public ExportRoutingDataTo ( IRoutableMessage message ) : void
message IRoutableMessage
Результат void

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

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?
Результат int?

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

Removes a routing key from the message. This key indicates where this message should be forwared to.
public Pop ( ) : int?
Результат int?

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

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.
Результат void

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

Protected protobuf-net constructor.
protected ResponseMessage ( ) : System
Результат System

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

Protected instructor used for deep cloning the NetworkMessage.
protected ResponseMessage ( NetSendable netSendablePayload ) : System
netSendablePayload NetSendable Shallow copy of the PacketPayload for copying.
Результат System

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

Constructor for ResponseMessage that calls NetworkMessage.ctor
public ResponseMessage ( PacketPayload payload ) : System
payload GladNet.Payload.PacketPayload of the .
Результат System