2 instantiations of RedirectToRouteHttpResult
Microsoft.AspNetCore.Http.Results (2)
TypedResults.cs (2)
611=> new( 636=> new(
29 references to RedirectToRouteHttpResult
Microsoft.AspNetCore.Http.Results (10)
RedirectToRouteHttpResult.cs (6)
20/// Initializes a new instance of the <see cref="RedirectToRouteHttpResult"/> with the values 31/// Initializes a new instance of the <see cref="RedirectToRouteHttpResult"/> with the values 45/// Initializes a new instance of the <see cref="RedirectToRouteHttpResult"/> with the values 62/// Initializes a new instance of the <see cref="RedirectToRouteHttpResult"/> with the values 81/// Initializes a new instance of the <see cref="RedirectToRouteHttpResult"/> with the values 107/// Initializes a new instance of the <see cref="RedirectToRouteHttpResult"/> with the values
TypedResults.cs (4)
608/// <returns>The created <see cref="RedirectToRouteHttpResult"/> for the response.</returns> 610public static RedirectToRouteHttpResult RedirectToRoute(string? routeName = null, object? routeValues = null, bool permanent = false, bool preserveMethod = false, string? fragment = null) 632/// <returns>The created <see cref="RedirectToRouteHttpResult"/> for the response.</returns> 634public static RedirectToRouteHttpResult RedirectToRoute(string? routeName, RouteValueDictionary? routeValues, bool permanent = false, bool preserveMethod = false, string? fragment = null)
Microsoft.AspNetCore.Http.Results.Tests (19)
RedirectToRouteResultTests.cs (5)
21var result = new RedirectToRouteHttpResult(null, new Dictionary<string, object>()); 41var result = new RedirectToRouteHttpResult(routeName, new { id = 10 }); 59var result = new RedirectToRouteHttpResult("Sample", null, true, "test"); 77var result = new RedirectToRouteHttpResult("Sample", null, true, true, "test"); 91var result = new RedirectToRouteHttpResult(null);
ResultsTests.cs (10)
1526var result = Results.RedirectToRoute(routeName, routeValues, true, true, fragment) as RedirectToRouteHttpResult; 1545var result = Results.RedirectToRoute(routeName, routeValues, true, true, fragment) as RedirectToRouteHttpResult; 1559var result = Results.RedirectToRoute() as RedirectToRouteHttpResult; 1570var result = Results.RedirectToRoute(null, null) as RedirectToRouteHttpResult; 1772(() => Results.RedirectToRoute("routeName", (object)null, false, false, null), typeof(RedirectToRouteHttpResult)), 1773(() => Results.RedirectToRoute("routeName", null, false, false, null), typeof(RedirectToRouteHttpResult)),
TypedResultsTests.cs (4)
1308var result = TypedResults.RedirectToRoute(routeName, routeValues, true, true, fragment); 1322var result = TypedResults.RedirectToRoute(); 1336var result = TypedResults.RedirectToRoute(routeValues: routeValues); 1349var result = TypedResults.RedirectToRoute(null, null);