示例#1
0
 public static byte[] Process(SmartObject message)
 {
     if (message.IsDefined("Command"))
     {
         dynamic d = message;
         Type    commandType;
         if (Commands.TryGetValue(d.Command.ToString(), out commandType))
         {
             var command = Activtor.CreateInstance(commandType);
             return(command.Process(message));
         }
     }
     return(null);
 }