Beispiel #1
0
        private void OnBeginInvokeJS(int asyncHandle, string identifier, string argsJson)
        {
            var call = new CapturedJSInteropCall(asyncHandle, identifier, argsJson);

            Operations?.JSInteropCalls.Enqueue(call);
            JSInterop?.Invoke(call);

            NextJSInteropReceived?.Completion?.TrySetResult(null);
        }
Beispiel #2
0
 private static void OnJSInterop(CapturedJSInteropCall call) =>
 Console.WriteLine("JS Invoke: " + call.Identifier + " (" + call.ArgsJson + ")");