14 references to Instance
Microsoft.AspNetCore.Components.WebAssembly (14)
Hosting\WebAssemblyHostBuilder.cs (3)
299
Services.AddSingleton<IJSRuntime>(DefaultWebAssemblyJSRuntime.
Instance
);
304
Services.AddSingleton(new LazyAssemblyLoader(DefaultWebAssemblyJSRuntime.
Instance
));
313
builder.AddProvider(new WebAssemblyConsoleLoggerProvider(DefaultWebAssemblyJSRuntime.
Instance
));
Rendering\WebAssemblyRenderer.cs (3)
31
: base(serviceProvider, loggerFactory, DefaultWebAssemblyJSRuntime.
Instance
.ReadJsonSerializerOptions(), jsComponentInterop)
43
ElementReferenceContext = DefaultWebAssemblyJSRuntime.
Instance
.ElementReferenceContext;
44
DefaultWebAssemblyJSRuntime.
Instance
.OnUpdateRootComponents += OnUpdateRootComponents;
Services\DefaultWebAssemblyJSRuntime.cs (6)
51
return DotNetDispatcher.Invoke(
Instance
, callInfo, argsJson);
62
DotNetDispatcher.EndInvokeJS(
Instance
, argsJson);
91
DotNetDispatcher.BeginInvokeDotNet(
Instance
, state.callInfo, state.argsJson);
102
Instance
.OnUpdateRootComponents?.Invoke(operations);
133
var componentType =
Instance
._rootComponentCache.GetRootComponent(operation.Marker!.Value.Assembly!, operation.Marker.Value.TypeName!)
156
DotNetDispatcher.ReceiveByteArray(
Instance
, id, data);
Services\WebAssemblyNavigationManager.cs (2)
71
DefaultWebAssemblyJSRuntime.
Instance
.InvokeVoid(Interop.NavigateTo, uri, options);
85
DefaultWebAssemblyJSRuntime.
Instance
.InvokeVoid(Interop.Refresh, forceReload);