1 write to PreserveMethod
Microsoft.AspNetCore.Mvc.Core (1)
RedirectToRouteResult.cs (1)
123
PreserveMethod
= preserveMethod;
61 references to PreserveMethod
Microsoft.AspNetCore.Mvc.Core (5)
ControllerBase.cs (4)
764
/// <see cref="RedirectToRouteResult.Permanent"/> set to false and <see cref="RedirectToRouteResult.
PreserveMethod
"/>
855
/// <see cref="RedirectToRouteResult.Permanent"/> set to true and <see cref="RedirectToRouteResult.
PreserveMethod
"/>
1008
/// <see cref="RedirectToRouteResult.Permanent"/> set to false and <see cref="RedirectToRouteResult.
PreserveMethod
"/>
1036
/// <see cref="RedirectToRouteResult.Permanent"/> set to true and <see cref="RedirectToRouteResult.
PreserveMethod
"/>
Infrastructure\RedirectToRouteResultExecutor.cs (1)
51
if (result.
PreserveMethod
)
Microsoft.AspNetCore.Mvc.Core.Test (16)
ControllerBaseTest.cs (16)
716
Assert.False(resultTemporary.
PreserveMethod
);
735
Assert.True(resultTemporary.
PreserveMethod
);
756
Assert.False(result.
PreserveMethod
);
779
Assert.True(result.
PreserveMethod
);
800
Assert.False(resultPermanent.
PreserveMethod
);
819
Assert.True(resultPermanent.
PreserveMethod
);
840
Assert.False(result.
PreserveMethod
);
863
Assert.True(result.
PreserveMethod
);
882
Assert.False(resultTemporary.
PreserveMethod
);
899
Assert.True(resultTemporary.
PreserveMethod
);
916
Assert.False(resultPermanent.
PreserveMethod
);
933
Assert.True(resultPermanent.
PreserveMethod
);
953
Assert.False(resultTemporary.
PreserveMethod
);
974
Assert.True(resultTemporary.
PreserveMethod
);
995
Assert.False(resultPermanent.
PreserveMethod
);
1282
Assert.True(resultPermanent.
PreserveMethod
);
Microsoft.AspNetCore.Mvc.RazorPages (8)
PageBase.cs (4)
817
/// <see cref="RedirectToRouteResult.Permanent"/> set to false and <see cref="RedirectToRouteResult.
PreserveMethod
"/>
902
/// <see cref="RedirectToRouteResult.Permanent"/> set to true and <see cref="RedirectToRouteResult.
PreserveMethod
"/>
1052
/// <see cref="RedirectToRouteResult.Permanent"/> set to false and <see cref="RedirectToRouteResult.
PreserveMethod
"/>
1077
/// <see cref="RedirectToRouteResult.Permanent"/> set to true and <see cref="RedirectToRouteResult.
PreserveMethod
"/>
PageModel.cs (4)
1145
/// <see cref="RedirectToRouteResult.Permanent"/> set to false and <see cref="RedirectToRouteResult.
PreserveMethod
"/>
1230
/// <see cref="RedirectToRouteResult.Permanent"/> set to true and <see cref="RedirectToRouteResult.
PreserveMethod
"/>
1404
/// <see cref="RedirectToRouteResult.Permanent"/> set to false and <see cref="RedirectToRouteResult.
PreserveMethod
"/>
1429
/// <see cref="RedirectToRouteResult.Permanent"/> set to true and <see cref="RedirectToRouteResult.
PreserveMethod
"/>
Microsoft.AspNetCore.Mvc.RazorPages.Test (32)
PageModelTest.cs (16)
707
Assert.False(resultTemporary.
PreserveMethod
);
726
Assert.True(resultTemporary.
PreserveMethod
);
747
Assert.False(result.
PreserveMethod
);
770
Assert.True(result.
PreserveMethod
);
791
Assert.False(resultPermanent.
PreserveMethod
);
810
Assert.True(resultPermanent.
PreserveMethod
);
831
Assert.False(result.
PreserveMethod
);
854
Assert.True(result.
PreserveMethod
);
873
Assert.False(resultTemporary.
PreserveMethod
);
890
Assert.True(resultTemporary.
PreserveMethod
);
907
Assert.False(resultPermanent.
PreserveMethod
);
924
Assert.True(resultPermanent.
PreserveMethod
);
1302
Assert.False(resultTemporary.
PreserveMethod
);
1323
Assert.True(resultTemporary.
PreserveMethod
);
1344
Assert.False(resultPermanent.
PreserveMethod
);
1365
Assert.True(resultPermanent.
PreserveMethod
);
PageTest.cs (16)
727
Assert.False(resultTemporary.
PreserveMethod
);
746
Assert.True(resultTemporary.
PreserveMethod
);
767
Assert.False(result.
PreserveMethod
);
790
Assert.True(result.
PreserveMethod
);
811
Assert.False(resultPermanent.
PreserveMethod
);
830
Assert.True(resultPermanent.
PreserveMethod
);
851
Assert.False(result.
PreserveMethod
);
874
Assert.True(result.
PreserveMethod
);
893
Assert.False(resultTemporary.
PreserveMethod
);
910
Assert.True(resultTemporary.
PreserveMethod
);
927
Assert.False(resultPermanent.
PreserveMethod
);
944
Assert.True(resultPermanent.
PreserveMethod
);
964
Assert.False(resultTemporary.
PreserveMethod
);
985
Assert.True(resultTemporary.
PreserveMethod
);
1006
Assert.False(resultPermanent.
PreserveMethod
);
1027
Assert.True(resultPermanent.
PreserveMethod
);