1 instantiation of WebAssemblyNavigationManager
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostBuilder.cs (1)
169
WebAssemblyNavigationManager.Instance = new
WebAssemblyNavigationManager
(baseUri, uri);
12 references to WebAssemblyNavigationManager
Microsoft.AspNetCore.Components.WebAssembly (12)
Hosting\WebAssemblyHost.cs (1)
157
WebAssemblyNavigationManager
.Instance.CreateLogger(loggerFactory);
Hosting\WebAssemblyHostBuilder.cs (3)
169
WebAssemblyNavigationManager
.Instance = new WebAssemblyNavigationManager(baseUri, uri);
175
var hostEnvironment = new WebAssemblyHostEnvironment(applicationEnvironment,
WebAssemblyNavigationManager
.Instance.BaseUri);
300
Services.AddSingleton<NavigationManager>(
WebAssemblyNavigationManager
.Instance);
Infrastructure\JSInteropMethods.cs (3)
22
=>
WebAssemblyNavigationManager
.Instance.SetLocation(uri, null, isInterceptedLink);
30
WebAssemblyNavigationManager
.Instance.SetLocation(uri, state, isInterceptedLink);
39
return await
WebAssemblyNavigationManager
.Instance.HandleLocationChangingAsync(uri, state, isInterceptedLink);
Services\WebAssemblyNavigationManager.cs (5)
17
private ILogger<
WebAssemblyNavigationManager
> _logger = default!;
20
/// Gets the instance of <see cref="
WebAssemblyNavigationManager
"/>.
22
public static
WebAssemblyNavigationManager
Instance { get; set; } = default!;
33
throw new InvalidOperationException($"The {nameof(
WebAssemblyNavigationManager
)} has already created a logger.");
36
_logger = loggerFactory.CreateLogger<
WebAssemblyNavigationManager
>();