1 write to BaseUri
Microsoft.AspNetCore.Components (1)
NavigationManager.cs (1)
236BaseUri = baseUri;
16 references to BaseUri
Aspire.Dashboard (1)
Components\Layout\MainLayout.razor.cs (1)
94if (TargetLocationInterceptor.InterceptTargetLocation(NavigationManager.BaseUri, context.TargetLocation, out var newTargetLocation))
Microsoft.AspNetCore.Components (9)
NavigationManager.cs (8)
67/// Gets or sets the current base URI. The <see cref="BaseUri" /> is always represented as an absolute URI in string form with trailing slash. 71/// Setting <see cref="BaseUri" /> will not trigger the <see cref="LocationChanged" /> event. 123/// (as returned by <see cref="BaseUri"/>).</param> 132/// (as returned by <see cref="BaseUri"/>).</param> 159/// (as returned by <see cref="BaseUri"/>).</param> 171/// (as returned by <see cref="BaseUri"/>).</param> 184/// (as returned by <see cref="BaseUri"/>).</param> 261/// Given a base URI (e.g., one previously returned by <see cref="BaseUri"/>),
Routing\Router.cs (1)
114_baseUri = NavigationManager.BaseUri;
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.cs (1)
90_ = GetErrorHandledTask(SetNotFoundResponseAsync(navigationManager.BaseUri, args));
Microsoft.AspNetCore.Components.WebAssembly (2)
Hosting\WebAssemblyHostBuilder.cs (1)
185var hostEnvironment = new WebAssemblyHostEnvironment(applicationEnvironment, WebAssemblyNavigationManager.Instance.BaseUri);
HotReload\WebAssemblyHotReload.cs (1)
90BaseAddress = new Uri(WebAssemblyNavigationManager.Instance.BaseUri, UriKind.Absolute)
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\WebAssemblyHostBuilderTest.cs (1)
146Assert.Equal("https://www.example.com/", navigationManager.BaseUri);
MyFrontend (2)
Components\NavigationManagerExtensions.cs (2)
9if (uri.StartsWith(navigationManager.BaseUri, StringComparison.Ordinal)) 16var message = $"The URI '{uri}' is not contained by the base URI '{navigationManager.BaseUri}'.";