1 write to Permanent
Microsoft.AspNetCore.Mvc.Core (1)
RedirectToActionResult.cs (1)
126Permanent = permanent;
86 references to Permanent
Microsoft.AspNetCore.Mvc.Core (10)
ControllerBase.cs (8)
550/// <see cref="RedirectToActionResult.Permanent"/> set to false and <see cref="RedirectToActionResult.PreserveMethod"/> 580/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>. 590/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/> 602/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/> 614/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>, 630/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>, 646/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>, 674/// <see cref="RedirectToActionResult.Permanent"/> set to true and <see cref="RedirectToActionResult.PreserveMethod"/>
Infrastructure\RedirectToActionResultExecutor.cs (2)
57context.HttpContext.Response.StatusCode = result.Permanent ? 63context.HttpContext.Response.Redirect(destinationUrl, result.Permanent);
Microsoft.AspNetCore.Mvc.Core.Test (20)
ControllerBaseTest.cs (20)
293Assert.False(resultTemporary.Permanent); 309Assert.False(resultTemporary.Permanent); 325Assert.True(resultPermanent.Permanent); 341Assert.True(resultPermanent.Permanent); 360Assert.False(resultTemporary.Permanent); 380Assert.False(resultTemporary.Permanent); 400Assert.True(resultPermanent.Permanent); 420Assert.True(resultPermanent.Permanent); 440Assert.False(resultTemporary.Permanent); 464Assert.False(resultTemporary.Permanent); 488Assert.True(resultPermanent.Permanent); 512Assert.True(resultPermanent.Permanent); 533Assert.False(resultTemporary.Permanent); 553Assert.False(resultTemporary.Permanent); 576Assert.False(result.Permanent); 601Assert.False(result.Permanent); 623Assert.True(resultPermanent.Permanent); 643Assert.True(resultPermanent.Permanent); 666Assert.True(result.Permanent); 695Assert.True(result.Permanent);
Microsoft.AspNetCore.Mvc.RazorPages (16)
PageBase.cs (8)
610/// <see cref="RedirectToActionResult.Permanent"/> set to false and <see cref="RedirectToActionResult.PreserveMethod"/> 636/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>. 647/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/> 660/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/> 673/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>, 690/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>, 707/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>, 731/// <see cref="RedirectToActionResult.Permanent"/> set to true and <see cref="RedirectToActionResult.PreserveMethod"/>
PageModel.cs (8)
944/// <see cref="RedirectToActionResult.Permanent"/> set to false and <see cref="RedirectToActionResult.PreserveMethod"/> 973/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>. 982/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/> 993/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/> 1004/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>, 1019/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>, 1034/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>, 1061/// <see cref="RedirectToActionResult.Permanent"/> set to true and <see cref="RedirectToActionResult.PreserveMethod"/>
Microsoft.AspNetCore.Mvc.RazorPages.Test (40)
PageModelTest.cs (20)
284Assert.False(resultTemporary.Permanent); 300Assert.False(resultTemporary.Permanent); 316Assert.True(resultPermanent.Permanent); 332Assert.True(resultPermanent.Permanent); 351Assert.False(resultTemporary.Permanent); 371Assert.False(resultTemporary.Permanent); 391Assert.True(resultPermanent.Permanent); 411Assert.True(resultPermanent.Permanent); 431Assert.False(resultTemporary.Permanent); 455Assert.False(resultTemporary.Permanent); 479Assert.True(resultPermanent.Permanent); 503Assert.True(resultPermanent.Permanent); 524Assert.False(resultTemporary.Permanent); 544Assert.False(resultTemporary.Permanent); 567Assert.False(result.Permanent); 592Assert.False(result.Permanent); 614Assert.True(resultPermanent.Permanent); 634Assert.True(resultPermanent.Permanent); 657Assert.True(result.Permanent); 686Assert.True(result.Permanent);
PageTest.cs (20)
304Assert.False(resultTemporary.Permanent); 320Assert.False(resultTemporary.Permanent); 336Assert.True(resultPermanent.Permanent); 352Assert.True(resultPermanent.Permanent); 371Assert.False(resultTemporary.Permanent); 391Assert.False(resultTemporary.Permanent); 411Assert.True(resultPermanent.Permanent); 431Assert.True(resultPermanent.Permanent); 451Assert.False(resultTemporary.Permanent); 475Assert.False(resultTemporary.Permanent); 499Assert.True(resultPermanent.Permanent); 523Assert.True(resultPermanent.Permanent); 544Assert.False(resultTemporary.Permanent); 564Assert.False(resultTemporary.Permanent); 587Assert.False(result.Permanent); 612Assert.False(result.Permanent); 634Assert.True(resultPermanent.Permanent); 654Assert.True(resultPermanent.Permanent); 677Assert.True(result.Permanent); 706Assert.True(result.Permanent);