1 write to Permanent
Microsoft.AspNetCore.Mvc.Core (1)
RedirectResult.cs (1)
53
Permanent
= permanent;
27 references to Permanent
Microsoft.AspNetCore.Mvc.Core (5)
ControllerBase.cs (3)
336
/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.
Permanent
"/> set to true
350
/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.
Permanent
"/> set to false
365
/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.
Permanent
"/> set to true
Infrastructure\RedirectResultExecutor.cs (2)
51
context.HttpContext.Response.StatusCode = result.
Permanent
?
57
context.HttpContext.Response.Redirect(destinationUrl, result.
Permanent
);
Microsoft.AspNetCore.Mvc.Core.Test (9)
ControllerBaseTest.cs (4)
53
Assert.False(result.
Permanent
);
70
Assert.True(result.
Permanent
);
87
Assert.False(result.
Permanent
);
104
Assert.True(result.
Permanent
);
RedirectResultTest.cs (3)
45
Assert.False(result.
Permanent
);
60
Assert.True(result.
Permanent
);
75
Assert.True(result.
Permanent
);
RequireHttpsAttributeTests.cs (2)
100
Assert.False(result.
Permanent
);
216
Assert.Equal(permanent ?? requireHttpsPermanent, result.
Permanent
);
Microsoft.AspNetCore.Mvc.RazorPages (6)
PageBase.cs (3)
496
/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.
Permanent
"/> set to true
509
/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.
Permanent
"/> set to false
523
/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.
Permanent
"/> set to true
PageModel.cs (3)
825
/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.
Permanent
"/> set to true
838
/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.
Permanent
"/> set to false
852
/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.
Permanent
"/> set to true
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
PageModelTest.cs (3)
61
Assert.True(result.
Permanent
);
78
Assert.False(result.
Permanent
);
95
Assert.True(result.
Permanent
);
PageTest.cs (4)
64
Assert.False(result.
Permanent
);
81
Assert.True(result.
Permanent
);
98
Assert.False(result.
Permanent
);
115
Assert.True(result.
Permanent
);