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