コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }