protected override void Execute(CodeActivityContext context) { Helper runJS = new Helper(); var data = Data.Get(context); var jsFunction = JSFunction.Get(context); var result = runJS.executeJSFunction(data, jsFunction); Result.Set(context, result); }
protected override void Execute(CodeActivityContext context) { ChromeWebSocket socket = new ChromeWebSocket(); int fnId = MessageId.Get(context); string webSocketURL = ChromeWebSocketURL.Get(context); string jsFunction = JSFunction.Get(context); string result = socket.executeJSInChrome(webSocketURL, fnId, jsFunction, true); Result.Set(context, result); }