-
Notifications
You must be signed in to change notification settings - Fork 33
ISendCommand
danielHalan edited this page Feb 16, 2013
·
11 revisions
Get all available commands from libraries found in the Assembly Paths provided.
Use provided CommandDefinition class to determinate what classes are commands. All returned types should tested with the provided Command Definition, as cmdDef.IsCommand(commandType) == true
.
Type[] GetAvailableCommands(string[] asmPaths, CommandDefinition cmdDef);
Initialize Service Bus. Called once, before first command is sent
void SetupServiceBus(string[] assemblyPaths);
Send provided Command object to destination Server and Queue
void SendCommand(string destinationServer, string destinationQueue, object message);
Property that indicates what transportation format the Message content is being stored in.
MessageContentFormat MessageContentFormat { get; }
Currently supported types,
public enum MessageContentFormat { Xml, Json, Other=0xFF }
Serialize command to a textformat, the format should correlate to the MessageContentFormat property.
string SerializeCommand(object cmd);
Deserialize command from text back to an object, the provided text format should correlate to the MessageContentFormat property.
object DeserializeCommand(string cmd);