1 instantiation of DefaultWebAssemblyJSRuntime
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\DefaultWebAssemblyJSRuntime.cs (1)
21
public static readonly DefaultWebAssemblyJSRuntime Instance =
new
();
16 references to DefaultWebAssemblyJSRuntime
Microsoft.AspNetCore.Components.WebAssembly (15)
Hosting\WebAssemblyHostBuilder.cs (3)
320
Services.AddSingleton<IJSRuntime>(
DefaultWebAssemblyJSRuntime
.Instance);
325
Services.AddSingleton(new LazyAssemblyLoader(
DefaultWebAssemblyJSRuntime
.Instance));
335
builder.AddProvider(new WebAssemblyConsoleLoggerProvider(
DefaultWebAssemblyJSRuntime
.Instance));
JSExports.g.cs (5)
57
__invokeRetVal = global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.InvokeDotNet(assemblyName, methodIdentifier, dotNetObjectId, argsJson);
86
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.EndInvokeJS(argsJson);
119
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.BeginInvokeDotNet(callId, assemblyNameOrDotNetObjectId, methodIdentifier, argsJson);
148
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.UpdateRootComponentsCore(operationsJson, appState);
177
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.ReceiveByteArrayFromJS(id, data);
Rendering\WebAssemblyRenderer.cs (3)
34
: base(serviceProvider, loggerFactory,
DefaultWebAssemblyJSRuntime
.Instance.ReadJsonSerializerOptions(), jsComponentInterop)
47
ElementReferenceContext =
DefaultWebAssemblyJSRuntime
.Instance.ElementReferenceContext;
48
DefaultWebAssemblyJSRuntime
.Instance.OnUpdateRootComponents += OnUpdateRootComponents;
Services\DefaultWebAssemblyJSRuntime.cs (1)
21
public static readonly
DefaultWebAssemblyJSRuntime
Instance = new();
Services\InternalJSImportMethods.cs (1)
24
return
DefaultWebAssemblyJSRuntime
.DeserializeOperations(components);
Services\WebAssemblyNavigationManager.cs (2)
71
DefaultWebAssemblyJSRuntime
.Instance.InvokeVoid(Interop.NavigateTo, uri, options);
85
DefaultWebAssemblyJSRuntime
.Instance.InvokeVoid(Interop.Refresh, forceReload);
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
JSObjectReferenceJsonConverterTest.cs (1)
17
JsonSerializerOptions =
DefaultWebAssemblyJSRuntime
.Instance.JsonSerializerOptions;