1 override of Redirect
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpResponse.cs (1)
141
public override void
Redirect
(string location, bool permanent)
11 references to Redirect
Microsoft.AspNetCore.Http.Abstractions (1)
HttpResponse.cs (1)
135
public virtual void Redirect([StringSyntax(StringSyntaxAttribute.Uri)] string location) =>
Redirect
(location, permanent: false);
Microsoft.AspNetCore.Http.Results (2)
RedirectHttpResult.cs (1)
118
httpContext.Response.
Redirect
(destinationUrl, Permanent);
RedirectToRouteHttpResult.cs (1)
187
httpContext.Response.
Redirect
(destinationUrl, Permanent);
Microsoft.AspNetCore.Mvc.Core (5)
Infrastructure\LocalRedirectResultExecutor.cs (1)
60
context.HttpContext.Response.
Redirect
(destinationUrl, result.Permanent);
Infrastructure\RedirectResultExecutor.cs (1)
57
context.HttpContext.Response.
Redirect
(destinationUrl, result.Permanent);
Infrastructure\RedirectToActionResultExecutor.cs (1)
63
context.HttpContext.Response.
Redirect
(destinationUrl, result.Permanent);
Infrastructure\RedirectToPageResultExecutor.cs (1)
63
context.HttpContext.Response.
Redirect
(destinationUrl, result.Permanent);
Infrastructure\RedirectToRouteResultExecutor.cs (1)
59
context.HttpContext.Response.
Redirect
(destinationUrl, result.Permanent);
Microsoft.AspNetCore.Mvc.Core.Test (3)
RedirectToActionResultTest.cs (1)
51
httpResponse.Verify(r => r.
Redirect
(expectedUrl, expectedPermanentFlag), Times.Exactly(1));
RedirectToPageResultTest.cs (1)
72
httpResponse.Verify(r => r.
Redirect
(expectedUrl, permanentRedirect), Times.Exactly(1));
RedirectToRouteResultTest.cs (1)
51
httpResponse.Verify(r => r.
Redirect
(expectedUrl, expectedPermanentFlag), Times.Exactly(1));