2 instantiations of RedirectHttpResult
Microsoft.AspNetCore.Http.Results (2)
43 references to RedirectHttpResult
Microsoft.AspNetCore.Http.Results (8)
Microsoft.AspNetCore.Http.Results.Tests (35)
LocalRedirectResultTests.cs (6)
19var result = new RedirectHttpResult(url, acceptLocalUrlOnly: true, false, false);
34var result = new RedirectHttpResult(url, acceptLocalUrlOnly: true, permanent: true, preserveMethod: false);
49var result = new RedirectHttpResult(url, acceptLocalUrlOnly: true, permanent: true, preserveMethod: true);
66var result = new RedirectHttpResult(contentPath, acceptLocalUrlOnly: true, false, false);
89var result = new RedirectHttpResult(contentPath, acceptLocalUrlOnly: true, false, false);
110var result = new RedirectHttpResult(contentPath, acceptLocalUrlOnly: true, false, false);
ResultsTests.cs (16)
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;
1476var result = Results.Redirect(url) as RedirectHttpResult;
1492var result = Results.Redirect(url, true) as RedirectHttpResult;
1508var result = Results.Redirect(url, false, true) as RedirectHttpResult;
1770(() => Results.Redirect("/path", false, false), typeof(RedirectHttpResult)),
1771(() => Results.LocalRedirect("/path", false, false), typeof(RedirectHttpResult)),