Beispiel #1
0
 public void Handle(CommandHandlerHelper helper)
 {
     try
     {
         string script            = helper.Command.Args["script"].ToString();
         object response          = helper.Client.JSEngine.Evaluate(helper.Request, script);
         object convertedResponse = ResponseConverterManager.Convert(response);
         helper.Reply(enums.ResponseType.Response, convertedResponse);
     } catch (Exception e)
     {
         helper.Reply(enums.ResponseType.Error, e);
     }
 }
 public void Handle(CommandHandlerHelper helper)
 {
     helper.Reply(enums.ResponseType.Response, "Pong");
 }