public async Task Print(PrintOptions options) { if (module is null) { await ImportModule(); } await module.InvokeVoidAsync("print", new PrintOptionsAdapter(options)); }
public static async Task <string> InvokeDisposedJSObjectReferenceExceptionAsync(JSObjectReference jsObjectReference) { try { await jsObjectReference.InvokeVoidAsync("noop"); return("No exception thrown"); } catch (JSException e) { return(e.Message); } }