https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.routing.routedata.routedatasnapshot.restore?view=aspnetcore-6.0
RouteData.RouteDataSnapshot.Restore Method (Microsoft.AspNetCore.Routing) | Microsoft Learn
Restores the RouteData to the captured state.
restoremethodmicrosoftaspnetcorerouting