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); }
private static void OnJSInterop(CapturedJSInteropCall call) => Console.WriteLine("JS Invoke: " + call.Identifier + " (" + call.ArgsJson + ")");