예제 #1
0
 public void RemoveItem(string key)
 {
     CheckForInProcessRuntime();
     _jSInProcessRuntime.InvokeVoidAsync("localStorage.removeItem", key);
 }
 public static async ValueTask MyFunction(this IJSInProcessRuntime jSInProcessRuntime, string message) =>
 await jSInProcessRuntime.InvokeVoidAsync("my_function", message);
        public static async ValueTask <bool> Confirm(this IJSInProcessRuntime jSInProcessRuntime, string message)
        {
            await jSInProcessRuntime.InvokeVoidAsync("console.log", "Example Message");

            return(await jSInProcessRuntime.InvokeAsync <bool>("confirm", message));
        }
예제 #4
0
 public ValueTask InitializeAsync() => Runtime.InvokeVoidAsync("monacoInterop.initializeAsync");