10 references to Redirect
Aspire.Dashboard.Tests (3)
Integration\MockOpenIdAuthority.cs (3)
64
return Results.
Redirect
($"{redirect_uri}?error=interaction_required&state={state}");
70
return Results.
Redirect
($"{redirect_uri}?error=invalid_request&error_description=extraQueryParams%20not%20preserved&state={state}");
74
return Results.
Redirect
($"{redirect_uri}?code={lastCode}&state={state}");
Microsoft.AspNetCore.Http.Results.Tests (6)
ResultsTests.cs (6)
1460
Assert.Throws<ArgumentNullException>("url", () => Results.
Redirect
(default(string)));
1466
Assert.Throws<ArgumentException>("url", () => Results.
Redirect
(string.Empty));
1476
var result = Results.
Redirect
(url) as RedirectHttpResult;
1492
var result = Results.
Redirect
(url, true) as RedirectHttpResult;
1508
var result = Results.
Redirect
(url, false, true) as RedirectHttpResult;
1770
(() => Results.
Redirect
("/path", false, false), typeof(RedirectHttpResult)),
SimpleWebSiteWithWebApplicationBuilder (1)
Program.cs (1)
37
return
Redirect
("/json", permanent: true);