8 references to LocalRedirect
Aspire.Dashboard (1)
DashboardEndpointsBuilder.cs (1)
76return Results.LocalRedirect(redirectUrl);
Microsoft.AspNetCore.Http.Results.Tests (7)
ResultsTests.cs (7)
1077Assert.Throws<ArgumentNullException>("localUrl", () => Results.LocalRedirect(default(string))); 1083Assert.Throws<ArgumentException>("localUrl", () => Results.LocalRedirect(string.Empty)); 1093var result = Results.LocalRedirect(localUrl) as RedirectHttpResult; 1110var result = Results.LocalRedirect(localUrl, permanent) as RedirectHttpResult; 1128var result = Results.LocalRedirect(localUrl, permanent, preserveMethod) as RedirectHttpResult; 1146var result = Results.LocalRedirect(localUrl, permanent, preserveMethod) as RedirectHttpResult; 1771(() => Results.LocalRedirect("/path", false, false), typeof(RedirectHttpResult)),