16 references to Instance
BasicTestApp (1)
Program.cs (1)
98var currentUrl = DefaultWebAssemblyJSRuntime.Instance.Invoke<string>("getCurrentUrl");
Microsoft.AspNetCore.Components.WebAssembly (14)
Hosting\WebAssemblyHostBuilder.cs (3)
320Services.AddSingleton<IJSRuntime>(DefaultWebAssemblyJSRuntime.Instance); 325Services.AddSingleton(new LazyAssemblyLoader(DefaultWebAssemblyJSRuntime.Instance)); 335builder.AddProvider(new WebAssemblyConsoleLoggerProvider(DefaultWebAssemblyJSRuntime.Instance));
Rendering\WebAssemblyRenderer.cs (3)
34: base(serviceProvider, loggerFactory, DefaultWebAssemblyJSRuntime.Instance.ReadJsonSerializerOptions(), jsComponentInterop) 47ElementReferenceContext = DefaultWebAssemblyJSRuntime.Instance.ElementReferenceContext; 48DefaultWebAssemblyJSRuntime.Instance.OnUpdateRootComponents += OnUpdateRootComponents;
Services\DefaultWebAssemblyJSRuntime.cs (6)
52return DotNetDispatcher.Invoke(Instance, callInfo, argsJson); 63DotNetDispatcher.EndInvokeJS(Instance, argsJson); 92DotNetDispatcher.BeginInvokeDotNet(Instance, state.callInfo, state.argsJson); 103Instance.OnUpdateRootComponents?.Invoke(operations, appState); 134var componentType = Instance._rootComponentCache.GetRootType(operation.Marker!.Value.Assembly!, operation.Marker.Value.TypeName!) 157DotNetDispatcher.ReceiveByteArray(Instance, id, data);
Services\WebAssemblyNavigationManager.cs (2)
71DefaultWebAssemblyJSRuntime.Instance.InvokeVoid(Interop.NavigateTo, uri, options); 85DefaultWebAssemblyJSRuntime.Instance.InvokeVoid(Interop.Refresh, forceReload);
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
JSObjectReferenceJsonConverterTest.cs (1)
17JsonSerializerOptions = DefaultWebAssemblyJSRuntime.Instance.JsonSerializerOptions;