16 references to Instance
BasicTestApp (1)
Program.cs (1)
91var currentUrl = DefaultWebAssemblyJSRuntime.Instance.Invoke<string>("getCurrentUrl");
Microsoft.AspNetCore.Components.WebAssembly (14)
Hosting\WebAssemblyHostBuilder.cs (3)
299Services.AddSingleton<IJSRuntime>(DefaultWebAssemblyJSRuntime.Instance); 304Services.AddSingleton(new LazyAssemblyLoader(DefaultWebAssemblyJSRuntime.Instance)); 314builder.AddProvider(new WebAssemblyConsoleLoggerProvider(DefaultWebAssemblyJSRuntime.Instance));
Rendering\WebAssemblyRenderer.cs (3)
32: base(serviceProvider, loggerFactory, DefaultWebAssemblyJSRuntime.Instance.ReadJsonSerializerOptions(), jsComponentInterop) 44ElementReferenceContext = DefaultWebAssemblyJSRuntime.Instance.ElementReferenceContext; 45DefaultWebAssemblyJSRuntime.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.GetRootType(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);
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
JSObjectReferenceJsonConverterTest.cs (1)
17JsonSerializerOptions = DefaultWebAssemblyJSRuntime.Instance.JsonSerializerOptions;