Exemplo n.º 1
0
 /// <summary>
 /// Initialize a new instance of <see cref="Command"/> type.
 /// </summary>
 /// <param name="commandTemplate"></param>
 /// <param name="action"></param>
 public Command(string commandTemplate, Action<dynamic, dynamic> action)
 {
     CommandRoute = new CommandRoute(commandTemplate);
     Action = action;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initialize a new instance of <see cref="Command"/> type.
 /// </summary>
 /// <param name="commandTemplate"></param>
 /// <param name="action"></param>
 public Command(string commandTemplate, Action <dynamic, dynamic> action)
 {
     CommandRoute = new CommandRoute(commandTemplate);
     Action       = action;
 }