1 instantiation of LocationChangingContext
Microsoft.AspNetCore.Components (1)
NavigationManager.cs (1)
335var context = new LocationChangingContext
45 references to LocationChangingContext
Microsoft.AspNetCore.Components (11)
NavigationManager.cs (11)
34private readonly List<Func<LocationChangingContext, ValueTask>> _locationChangingHandlers = new(); 335var context = new LocationChangingContext 367var locationChangingHandlersCopy = ArrayPool<Func<LocationChangingContext, ValueTask>>.Shared.Rent(handlerCount); 413ArrayPool<Func<LocationChangingContext, ValueTask>>.Shared.Return(locationChangingHandlersCopy); 442private async ValueTask InvokeLocationChangingHandlerAsync(Func<LocationChangingContext, ValueTask> handler, LocationChangingContext context) 463protected virtual void HandleLocationChangingHandlerException(Exception ex, LocationChangingContext context) 480public IDisposable RegisterLocationChangingHandler(Func<LocationChangingContext, ValueTask> locationChangingHandler) 496private void RemoveLocationChangingHandler(Func<LocationChangingContext, ValueTask> locationChangingHandler) 563private readonly Func<LocationChangingContext, ValueTask> _handler; 566public LocationChangingRegistration(Func<LocationChangingContext, ValueTask> handler, NavigationManager navigationManager)
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteNavigationManager.cs (1)
151protected override void HandleLocationChangingHandlerException(Exception ex, LocationChangingContext context)
Microsoft.AspNetCore.Components.Tests (28)
NavigationManagerTest.cs (28)
230static ValueTask HandleLocationChanging(LocationChangingContext context) 260ValueTask HandleLocationChanging(LocationChangingContext context) 287async ValueTask HandleLocationChanging(LocationChangingContext context) 316async ValueTask HandleLocationChanging(LocationChangingContext context) 341static ValueTask HandleLocationChanging(LocationChangingContext context) 373ValueTask HandleLocationChanging_AllowNavigation(LocationChangingContext context) 379ValueTask HandleLocationChanging_PreventNavigation(LocationChangingContext context) 395LocationChangingContext currentContext = null; 415async ValueTask HandleLocationChanging(LocationChangingContext context) 433LocationChangingContext currentContext = null; 456async ValueTask HandleLocationChanging_PreventNavigation(LocationChangingContext context) 464ValueTask HandleLocationChanging_AllowNavigation(LocationChangingContext context) 488static async ValueTask HandleLocationChanging(LocationChangingContext context) 525async ValueTask HandleLocationChanging_BlockNavigation(LocationChangingContext context) 550static async ValueTask HandleLocationChanging_PreventNavigation(LocationChangingContext context) 583async ValueTask HandleLocationChanging(LocationChangingContext context) 650async ValueTask HandleLocationChanging(LocationChangingContext context) 704async ValueTask HandleLocationChanging_PreventNavigation(LocationChangingContext context) 710async ValueTask HandleLocationChanging_ThrowException(LocationChangingContext context) 735async ValueTask HandleLocationChanging_ThrowException(LocationChangingContext context) 761async ValueTask HandleLocationChanging_AllowNavigation(LocationChangingContext context) 766async ValueTask HandleLocationChanging_ThrowException(LocationChangingContext context) 787async ValueTask HandleLocationChanging_ThrowException(LocationChangingContext context) 809async ValueTask HandleLocationChanging_AllowNavigation(LocationChangingContext context) 814async ValueTask HandleLocationChanging_ThrowException(LocationChangingContext context) 830LocationChangingContext currentContext = null; 857async ValueTask HandleLocationChanging(LocationChangingContext context) 911protected override void HandleLocationChangingHandlerException(Exception ex, LocationChangingContext context)
Microsoft.AspNetCore.Components.Web (3)
Routing\NavigationLock.cs (3)
33public EventCallback<LocationChangingContext> OnBeforeInternalNavigation { get; set; } 53OnBeforeInternalNavigation = (EventCallback<LocationChangingContext>)parameter.Value; 99private async ValueTask OnLocationChanging(LocationChangingContext context)
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\WebAssemblyNavigationManager.cs (1)
88protected override void HandleLocationChangingHandlerException(Exception ex, LocationChangingContext context)
Microsoft.AspNetCore.Components.WebView (1)
Services\WebViewNavigationManager.cs (1)
93protected override void HandleLocationChangingHandlerException(Exception ex, LocationChangingContext context)