1 write to PreserveMethod
Microsoft.AspNetCore.Mvc.Core (1)
RedirectResult.cs (1)
54
PreserveMethod
= preserveMethod;
21 references to PreserveMethod
Microsoft.AspNetCore.Mvc.Core (3)
ControllerBase.cs (2)
351
/// and <see cref="RedirectResult.
PreserveMethod
"/> set to true (<see cref="StatusCodes.Status307TemporaryRedirect"/>)
366
/// and <see cref="RedirectResult.
PreserveMethod
"/> set to true (<see cref="StatusCodes.Status308PermanentRedirect"/>)
Infrastructure\RedirectResultExecutor.cs (1)
49
if (result.
PreserveMethod
)
Microsoft.AspNetCore.Mvc.Core.Test (7)
ControllerBaseTest.cs (4)
52
Assert.False(result.
PreserveMethod
);
69
Assert.False(result.
PreserveMethod
);
86
Assert.True(result.
PreserveMethod
);
103
Assert.True(result.
PreserveMethod
);
RedirectResultTest.cs (3)
44
Assert.False(result.
PreserveMethod
);
59
Assert.False(result.
PreserveMethod
);
74
Assert.True(result.
PreserveMethod
);
Microsoft.AspNetCore.Mvc.RazorPages (4)
PageBase.cs (2)
510
/// and <see cref="RedirectResult.
PreserveMethod
"/> set to true (<see cref="StatusCodes.Status307TemporaryRedirect"/>)
524
/// and <see cref="RedirectResult.
PreserveMethod
"/> set to true (<see cref="StatusCodes.Status308PermanentRedirect"/>)
PageModel.cs (2)
839
/// and <see cref="RedirectResult.
PreserveMethod
"/> set to true (<see cref="StatusCodes.Status307TemporaryRedirect"/>)
853
/// and <see cref="RedirectResult.
PreserveMethod
"/> set to true (<see cref="StatusCodes.Status308PermanentRedirect"/>)
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
PageModelTest.cs (3)
60
Assert.False(result.
PreserveMethod
);
77
Assert.True(result.
PreserveMethod
);
94
Assert.True(result.
PreserveMethod
);
PageTest.cs (4)
63
Assert.False(result.
PreserveMethod
);
80
Assert.False(result.
PreserveMethod
);
97
Assert.True(result.
PreserveMethod
);
114
Assert.True(result.
PreserveMethod
);