Exemplo n.º 1
0
        public async Task Print(PrintOptions options)
        {
            if (module is null)
            {
                await ImportModule();
            }

            await module.InvokeVoidAsync("print", new PrintOptionsAdapter(options));
        }
Exemplo n.º 2
0
        public static async Task <string> InvokeDisposedJSObjectReferenceExceptionAsync(JSObjectReference jsObjectReference)
        {
            try
            {
                await jsObjectReference.InvokeVoidAsync("noop");

                return("No exception thrown");
            }
            catch (JSException e)
            {
                return(e.Message);
            }
        }