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