Ejemplo n.º 1
0
 public static async Task <IJSRuntime> UnloadJsAsync(this IJSRuntime runtime, params string[] fileNames)
 {
     await(await runtime.EnsureCanWork()).InvokeVoidAsync("BlazorJS.unloadScripts", fileNames);
     return(runtime);
 }
Ejemplo n.º 2
0
 internal static async Task <IJSRuntime> LoadJsAsync <T>(this IJSRuntime runtime, DotNetObjectReference <T> reference, params string[] fileNames) where T : class
 {
     await(await runtime.EnsureCanWork()).InvokeVoidAsync("BlazorJS.loadScripts", fileNames, reference);
     return(runtime);
 }