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)); }
public ValueTask InitializeAsync() => Runtime.InvokeVoidAsync("monacoInterop.initializeAsync");