1 write to PreserveMethod
Microsoft.AspNetCore.Mvc.Core (1)
RedirectToActionResult.cs (1)
127
PreserveMethod
= 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)
55
if (result.
PreserveMethod
)
Microsoft.AspNetCore.Mvc.Core.Test (20)
ControllerBaseTest.cs (20)
292
Assert.False(resultTemporary.
PreserveMethod
);
308
Assert.True(resultTemporary.
PreserveMethod
);
324
Assert.False(resultPermanent.
PreserveMethod
);
340
Assert.True(resultPermanent.
PreserveMethod
);
359
Assert.False(resultTemporary.
PreserveMethod
);
379
Assert.True(resultTemporary.
PreserveMethod
);
399
Assert.False(resultPermanent.
PreserveMethod
);
419
Assert.True(resultPermanent.
PreserveMethod
);
439
Assert.False(resultTemporary.
PreserveMethod
);
463
Assert.True(resultTemporary.
PreserveMethod
);
487
Assert.False(resultPermanent.
PreserveMethod
);
511
Assert.True(resultPermanent.
PreserveMethod
);
532
Assert.False(resultTemporary.
PreserveMethod
);
552
Assert.True(resultTemporary.
PreserveMethod
);
575
Assert.False(result.
PreserveMethod
);
600
Assert.True(result.
PreserveMethod
);
622
Assert.False(resultPermanent.
PreserveMethod
);
642
Assert.True(resultPermanent.
PreserveMethod
);
665
Assert.False(result.
PreserveMethod
);
694
Assert.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)
283
Assert.False(resultTemporary.
PreserveMethod
);
299
Assert.True(resultTemporary.
PreserveMethod
);
315
Assert.False(resultPermanent.
PreserveMethod
);
331
Assert.True(resultPermanent.
PreserveMethod
);
350
Assert.False(resultTemporary.
PreserveMethod
);
370
Assert.True(resultTemporary.
PreserveMethod
);
390
Assert.False(resultPermanent.
PreserveMethod
);
410
Assert.True(resultPermanent.
PreserveMethod
);
430
Assert.False(resultTemporary.
PreserveMethod
);
454
Assert.True(resultTemporary.
PreserveMethod
);
478
Assert.False(resultPermanent.
PreserveMethod
);
502
Assert.True(resultPermanent.
PreserveMethod
);
523
Assert.False(resultTemporary.
PreserveMethod
);
543
Assert.True(resultTemporary.
PreserveMethod
);
566
Assert.False(result.
PreserveMethod
);
591
Assert.True(result.
PreserveMethod
);
613
Assert.False(resultPermanent.
PreserveMethod
);
633
Assert.True(resultPermanent.
PreserveMethod
);
656
Assert.False(result.
PreserveMethod
);
685
Assert.True(result.
PreserveMethod
);
PageTest.cs (20)
303
Assert.False(resultTemporary.
PreserveMethod
);
319
Assert.True(resultTemporary.
PreserveMethod
);
335
Assert.False(resultPermanent.
PreserveMethod
);
351
Assert.True(resultPermanent.
PreserveMethod
);
370
Assert.False(resultTemporary.
PreserveMethod
);
390
Assert.True(resultTemporary.
PreserveMethod
);
410
Assert.False(resultPermanent.
PreserveMethod
);
430
Assert.True(resultPermanent.
PreserveMethod
);
450
Assert.False(resultTemporary.
PreserveMethod
);
474
Assert.True(resultTemporary.
PreserveMethod
);
498
Assert.False(resultPermanent.
PreserveMethod
);
522
Assert.True(resultPermanent.
PreserveMethod
);
543
Assert.False(resultTemporary.
PreserveMethod
);
563
Assert.True(resultTemporary.
PreserveMethod
);
586
Assert.False(result.
PreserveMethod
);
611
Assert.True(result.
PreserveMethod
);
633
Assert.False(resultPermanent.
PreserveMethod
);
653
Assert.True(resultPermanent.
PreserveMethod
);
676
Assert.False(result.
PreserveMethod
);
705
Assert.True(result.
PreserveMethod
);