Skip to content
danielHalan edited this page Feb 16, 2013 · 11 revisions

GetAvailableCommands

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);

SetupServiceBus

Initialize Service Bus. Called once, before first command is sent

    void SetupServiceBus(string[] assemblyPaths);

SendCommand

Send provided Command object to destination Server and Queue

    void SendCommand(string destinationServer, string destinationQueue, object message);

MessageContentFormat

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 }

SerializeCommand

Serialize command to a textformat, the format should correlate to the MessageContentFormat property.

    string SerializeCommand(object cmd);

DeserializeCommand

Deserialize command from text back to an object, the provided text format should correlate to the MessageContentFormat property.

    object DeserializeCommand(string cmd);