1 write to Permanent
Microsoft.AspNetCore.Mvc.Core (1)
RedirectToActionResult.cs (1)
126
Permanent
= permanent;
86 references to Permanent
Microsoft.AspNetCore.Mvc.Core (10)
ControllerBase.cs (8)
550
/// <see cref="RedirectToActionResult.
Permanent
"/> set to false and <see cref="RedirectToActionResult.PreserveMethod"/>
580
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>.
590
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>
602
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>
614
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>,
630
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>,
646
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>,
674
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true and <see cref="RedirectToActionResult.PreserveMethod"/>
Infrastructure\RedirectToActionResultExecutor.cs (2)
57
context.HttpContext.Response.StatusCode = result.
Permanent
?
63
context.HttpContext.Response.Redirect(destinationUrl, result.
Permanent
);
Microsoft.AspNetCore.Mvc.Core.Test (20)
ControllerBaseTest.cs (20)
293
Assert.False(resultTemporary.
Permanent
);
309
Assert.False(resultTemporary.
Permanent
);
325
Assert.True(resultPermanent.
Permanent
);
341
Assert.True(resultPermanent.
Permanent
);
360
Assert.False(resultTemporary.
Permanent
);
380
Assert.False(resultTemporary.
Permanent
);
400
Assert.True(resultPermanent.
Permanent
);
420
Assert.True(resultPermanent.
Permanent
);
440
Assert.False(resultTemporary.
Permanent
);
464
Assert.False(resultTemporary.
Permanent
);
488
Assert.True(resultPermanent.
Permanent
);
512
Assert.True(resultPermanent.
Permanent
);
533
Assert.False(resultTemporary.
Permanent
);
553
Assert.False(resultTemporary.
Permanent
);
576
Assert.False(result.
Permanent
);
601
Assert.False(result.
Permanent
);
623
Assert.True(resultPermanent.
Permanent
);
643
Assert.True(resultPermanent.
Permanent
);
666
Assert.True(result.
Permanent
);
695
Assert.True(result.
Permanent
);
Microsoft.AspNetCore.Mvc.RazorPages (16)
PageBase.cs (8)
610
/// <see cref="RedirectToActionResult.
Permanent
"/> set to false and <see cref="RedirectToActionResult.PreserveMethod"/>
636
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>.
647
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>
660
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>
673
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>,
690
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>,
707
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>,
731
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true and <see cref="RedirectToActionResult.PreserveMethod"/>
PageModel.cs (8)
944
/// <see cref="RedirectToActionResult.
Permanent
"/> set to false and <see cref="RedirectToActionResult.PreserveMethod"/>
973
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>.
982
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>
993
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>
1004
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>,
1019
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>,
1034
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true using the specified <paramref name="actionName"/>,
1061
/// <see cref="RedirectToActionResult.
Permanent
"/> set to true and <see cref="RedirectToActionResult.PreserveMethod"/>
Microsoft.AspNetCore.Mvc.RazorPages.Test (40)
PageModelTest.cs (20)
284
Assert.False(resultTemporary.
Permanent
);
300
Assert.False(resultTemporary.
Permanent
);
316
Assert.True(resultPermanent.
Permanent
);
332
Assert.True(resultPermanent.
Permanent
);
351
Assert.False(resultTemporary.
Permanent
);
371
Assert.False(resultTemporary.
Permanent
);
391
Assert.True(resultPermanent.
Permanent
);
411
Assert.True(resultPermanent.
Permanent
);
431
Assert.False(resultTemporary.
Permanent
);
455
Assert.False(resultTemporary.
Permanent
);
479
Assert.True(resultPermanent.
Permanent
);
503
Assert.True(resultPermanent.
Permanent
);
524
Assert.False(resultTemporary.
Permanent
);
544
Assert.False(resultTemporary.
Permanent
);
567
Assert.False(result.
Permanent
);
592
Assert.False(result.
Permanent
);
614
Assert.True(resultPermanent.
Permanent
);
634
Assert.True(resultPermanent.
Permanent
);
657
Assert.True(result.
Permanent
);
686
Assert.True(result.
Permanent
);
PageTest.cs (20)
304
Assert.False(resultTemporary.
Permanent
);
320
Assert.False(resultTemporary.
Permanent
);
336
Assert.True(resultPermanent.
Permanent
);
352
Assert.True(resultPermanent.
Permanent
);
371
Assert.False(resultTemporary.
Permanent
);
391
Assert.False(resultTemporary.
Permanent
);
411
Assert.True(resultPermanent.
Permanent
);
431
Assert.True(resultPermanent.
Permanent
);
451
Assert.False(resultTemporary.
Permanent
);
475
Assert.False(resultTemporary.
Permanent
);
499
Assert.True(resultPermanent.
Permanent
);
523
Assert.True(resultPermanent.
Permanent
);
544
Assert.False(resultTemporary.
Permanent
);
564
Assert.False(resultTemporary.
Permanent
);
587
Assert.False(result.
Permanent
);
612
Assert.False(result.
Permanent
);
634
Assert.True(resultPermanent.
Permanent
);
654
Assert.True(resultPermanent.
Permanent
);
677
Assert.True(result.
Permanent
);
706
Assert.True(result.
Permanent
);