92 references to Status302Found
Microsoft.AspNetCore.Http.Extensions (1)
ResponseExtensions.cs (1)
50response.StatusCode = permanent ? StatusCodes.Status301MovedPermanently : StatusCodes.Status302Found;
Microsoft.AspNetCore.Http.Results (10)
Results.cs (4)
497/// <description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description> 521/// <description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description> 545/// <description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description> 572/// <description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description>
ResultsCache.StatusCodes.cs (2)
102StatusCodes.Status302Found => _status302Found ??= new(StatusCodes.Status302Found),
TypedResults.cs (4)
560/// <item>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</item> 580/// <item>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</item> 600/// <item><description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description></item> 624/// <item><description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description></item>
Microsoft.AspNetCore.Http.Results.Tests (3)
LocalRedirectResultTests.cs (1)
73Assert.Equal(StatusCodes.Status302Found, httpContext.Response.StatusCode);
src\Shared\ResultsTests\RedirectResultTestBase.cs (2)
35Assert.Equal(StatusCodes.Status302Found, httpContext.Response.StatusCode); 58Assert.Equal(StatusCodes.Status302Found, httpContext.Response.StatusCode);
Microsoft.AspNetCore.Mvc.Core (20)
ControllerBase.cs (20)
322/// Creates a <see cref="RedirectResult"/> object that redirects (<see cref="StatusCodes.Status302Found"/>) 381/// (<see cref="StatusCodes.Status302Found"/>) to the specified local <paramref name="localUrl"/>. 438/// Redirects (<see cref="StatusCodes.Status302Found"/>) to an action with the same name as current one. 466/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the <paramref name="actionName"/>. 475/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the 486/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the 497/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified 512/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified 527/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified <paramref name="actionName"/>, 703/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified <paramref name="routeName"/>. 712/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified <paramref name="routeValues"/>. 721/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified 732/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified 743/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified 880/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>. 889/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/> 900/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/> 911/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>. 922/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/> 934/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
Microsoft.AspNetCore.Mvc.Core.Test (4)
LocalRedirectResultTest.cs (1)
79Assert.Equal(StatusCodes.Status302Found, httpContext.Response.StatusCode);
RedirectToActionResultTest.cs (1)
88var expectedStatusCode = StatusCodes.Status302Found;
src\Shared\ResultsTests\RedirectResultTestBase.cs (2)
35Assert.Equal(StatusCodes.Status302Found, httpContext.Response.StatusCode); 58Assert.Equal(StatusCodes.Status302Found, httpContext.Response.StatusCode);
Microsoft.AspNetCore.Mvc.RazorPages (40)
PageBase.cs (19)
407/// (<see cref="StatusCodes.Status302Found"/>) to the specified local <paramref name="localUrl"/>. 537/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the <paramref name="actionName"/>. 545/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the 555/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the 565/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified 579/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified 593/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified <paramref name="actionName"/>, 756/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified <paramref name="routeName"/>. 766/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified <paramref name="routeValues"/>. 776/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified 788/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified 800/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified 923/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the current page. 930/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the current page with the specified <paramref name="routeValues"/>. 938/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>. 946/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/> 956/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/> 966/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/> 977/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
PageModel.cs (21)
714/// (<see cref="StatusCodes.Status302Found"/>) to the specified local <paramref name="localUrl"/>. 812/// Creates a <see cref="RedirectResult"/> object that redirects (<see cref="StatusCodes.Status302Found"/>) 866/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the <paramref name="actionName"/>. 874/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the 884/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the 894/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified 908/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified 922/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the specified <paramref name="actionName"/>, 1089/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified <paramref name="routeName"/>. 1097/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified <paramref name="routeValues"/>. 1105/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified 1115/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified 1125/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified route using the specified 1254/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the current page. 1261/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the current page with the specified <paramref name="routeValues"/>. 1269/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>. 1277/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/> 1287/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/> 1298/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/> 1308/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/> 1319/// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified <paramref name="pageName"/>
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCachePolicyProviderTests.cs (1)
271[InlineData(StatusCodes.Status302Found)]
Microsoft.AspNetCore.ResponseCaching.Tests (1)
ResponseCachingPolicyProviderTests.cs (1)
297[InlineData(StatusCodes.Status302Found)]
Microsoft.AspNetCore.Rewrite (4)
ApacheModRewrite\RuleBuilder.cs (1)
208responseStatusCode = StatusCodes.Status302Found;
IISUrlRewrite\RedirectType.cs (1)
11Found = StatusCodes.Status302Found,
RewriteOptionsExtensions.cs (2)
62return AddRedirect(options, regex, replacement, statusCode: StatusCodes.Status302Found); 96return AddRedirectToHttps(options, statusCode: StatusCodes.Status302Found, sslPort: null);
Microsoft.AspNetCore.Rewrite.Tests (6)
ApacheModRewrite\RuleBuilderTest.cs (1)
35Assert.Equal(StatusCodes.Status302Found, redirectAction.StatusCode);
MiddlewareTests.cs (5)
233[InlineData(StatusCodes.Status302Found)] 265var options = new RewriteOptions().AddRedirectToHttps(statusCode: StatusCodes.Status302Found, sslPort: sslPort); 416[InlineData(StatusCodes.Status302Found)] 533[InlineData(StatusCodes.Status302Found)] 814[InlineData(StatusCodes.Status302Found)]
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\ReasonPhrases.cs (2)
30private static readonly byte[] _bytesStatus302 = CreateStatusBytes(StatusCodes.Status302Found); 116StatusCodes.Status302Found => _bytesStatus302,