C# Class Abune.Shared.Message.ObjectCommandEnvelope

Transport envelope for object commands.
Inheritance: ICanRouteToObject, ICanQuorumVote
Datei anzeigen Open project: abunedotnet/Abune.Shared Class Usage Examples

Public Methods

Method Description
ObjectCommandEnvelope ( UdpMessage message ) : System

Initializes a new instance of the ObjectCommandEnvelope class.

ObjectCommandEnvelope ( uint senderId, BaseCommand command, ulong toObjectId ) : System

Initializes a new instance of the ObjectCommandEnvelope class.

Serialize ( ) : byte[]

Serializes this instance.

Method Details

ObjectCommandEnvelope() public method

Initializes a new instance of the ObjectCommandEnvelope class.
Message is null.
public ObjectCommandEnvelope ( UdpMessage message ) : System
message UdpMessage The message.
return System

ObjectCommandEnvelope() public method

Initializes a new instance of the ObjectCommandEnvelope class.
public ObjectCommandEnvelope ( uint senderId, BaseCommand command, ulong toObjectId ) : System
senderId uint The sender identifier.
command BaseCommand The command.
toObjectId ulong To object identifier.
return System

Serialize() public method

Serializes this instance.
public Serialize ( ) : byte[]
return byte[]