public static bool IsSupported(IJSRuntime jsRuntime) { return(MonoWebAssemblyJSRuntimeType != null && MonoWebAssemblyJSRuntimeType.IsAssignableFrom(jsRuntime.GetType())); }
public async ValueTask <T> Get <T>(string key) { Console.WriteLine("Get " + _jSRuntime.GetType().Name); return(await _jSRuntime.InvokeAsync <T>("skorStorage.get", key)); }