1 write to PreserveMethod
Microsoft.AspNetCore.Mvc.Core (1)
RedirectToActionResult.cs (1)
127PreserveMethod = preserveMethod;
67 references to PreserveMethod
Microsoft.AspNetCore.Mvc.Core (3)
ControllerBase.cs (2)
550/// <see cref="RedirectToActionResult.Permanent"/> set to false and <see cref="RedirectToActionResult.PreserveMethod"/> 674/// <see cref="RedirectToActionResult.Permanent"/> set to true and <see cref="RedirectToActionResult.PreserveMethod"/>
Infrastructure\RedirectToActionResultExecutor.cs (1)
55if (result.PreserveMethod)
Microsoft.AspNetCore.Mvc.Core.Test (20)
ControllerBaseTest.cs (20)
292Assert.False(resultTemporary.PreserveMethod); 308Assert.True(resultTemporary.PreserveMethod); 324Assert.False(resultPermanent.PreserveMethod); 340Assert.True(resultPermanent.PreserveMethod); 359Assert.False(resultTemporary.PreserveMethod); 379Assert.True(resultTemporary.PreserveMethod); 399Assert.False(resultPermanent.PreserveMethod); 419Assert.True(resultPermanent.PreserveMethod); 439Assert.False(resultTemporary.PreserveMethod); 463Assert.True(resultTemporary.PreserveMethod); 487Assert.False(resultPermanent.PreserveMethod); 511Assert.True(resultPermanent.PreserveMethod); 532Assert.False(resultTemporary.PreserveMethod); 552Assert.True(resultTemporary.PreserveMethod); 575Assert.False(result.PreserveMethod); 600Assert.True(result.PreserveMethod); 622Assert.False(resultPermanent.PreserveMethod); 642Assert.True(resultPermanent.PreserveMethod); 665Assert.False(result.PreserveMethod); 694Assert.True(result.PreserveMethod);
Microsoft.AspNetCore.Mvc.RazorPages (4)
PageBase.cs (2)
610/// <see cref="RedirectToActionResult.Permanent"/> set to false and <see cref="RedirectToActionResult.PreserveMethod"/> 731/// <see cref="RedirectToActionResult.Permanent"/> set to true and <see cref="RedirectToActionResult.PreserveMethod"/>
PageModel.cs (2)
944/// <see cref="RedirectToActionResult.Permanent"/> set to false and <see cref="RedirectToActionResult.PreserveMethod"/> 1061/// <see cref="RedirectToActionResult.Permanent"/> set to true and <see cref="RedirectToActionResult.PreserveMethod"/>
Microsoft.AspNetCore.Mvc.RazorPages.Test (40)
PageModelTest.cs (20)
283Assert.False(resultTemporary.PreserveMethod); 299Assert.True(resultTemporary.PreserveMethod); 315Assert.False(resultPermanent.PreserveMethod); 331Assert.True(resultPermanent.PreserveMethod); 350Assert.False(resultTemporary.PreserveMethod); 370Assert.True(resultTemporary.PreserveMethod); 390Assert.False(resultPermanent.PreserveMethod); 410Assert.True(resultPermanent.PreserveMethod); 430Assert.False(resultTemporary.PreserveMethod); 454Assert.True(resultTemporary.PreserveMethod); 478Assert.False(resultPermanent.PreserveMethod); 502Assert.True(resultPermanent.PreserveMethod); 523Assert.False(resultTemporary.PreserveMethod); 543Assert.True(resultTemporary.PreserveMethod); 566Assert.False(result.PreserveMethod); 591Assert.True(result.PreserveMethod); 613Assert.False(resultPermanent.PreserveMethod); 633Assert.True(resultPermanent.PreserveMethod); 656Assert.False(result.PreserveMethod); 685Assert.True(result.PreserveMethod);
PageTest.cs (20)
303Assert.False(resultTemporary.PreserveMethod); 319Assert.True(resultTemporary.PreserveMethod); 335Assert.False(resultPermanent.PreserveMethod); 351Assert.True(resultPermanent.PreserveMethod); 370Assert.False(resultTemporary.PreserveMethod); 390Assert.True(resultTemporary.PreserveMethod); 410Assert.False(resultPermanent.PreserveMethod); 430Assert.True(resultPermanent.PreserveMethod); 450Assert.False(resultTemporary.PreserveMethod); 474Assert.True(resultTemporary.PreserveMethod); 498Assert.False(resultPermanent.PreserveMethod); 522Assert.True(resultPermanent.PreserveMethod); 543Assert.False(resultTemporary.PreserveMethod); 563Assert.True(resultTemporary.PreserveMethod); 586Assert.False(result.PreserveMethod); 611Assert.True(result.PreserveMethod); 633Assert.False(resultPermanent.PreserveMethod); 653Assert.True(resultPermanent.PreserveMethod); 676Assert.False(result.PreserveMethod); 705Assert.True(result.PreserveMethod);