1 write to Permanent
Microsoft.AspNetCore.Mvc.Core (1)
RedirectToRouteResult.cs (1)
124
Permanent
= permanent;
77 references to Permanent
Microsoft.AspNetCore.Mvc.Core (11)
ControllerBase.cs (9)
764
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to false and <see cref="RedirectToRouteResult.PreserveMethod"/>
790
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeName"/>.
800
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeValues"/>.
810
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeName"/>
822
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeName"/>
834
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeName"/>,
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 (2)
53
context.HttpContext.Response.StatusCode = result.
Permanent
?
59
context.HttpContext.Response.Redirect(destinationUrl, result.
Permanent
);
Microsoft.AspNetCore.Mvc.Core.Test (16)
ControllerBaseTest.cs (16)
717
Assert.False(resultTemporary.
Permanent
);
736
Assert.False(resultTemporary.
Permanent
);
757
Assert.False(result.
Permanent
);
780
Assert.False(result.
Permanent
);
801
Assert.True(resultPermanent.
Permanent
);
820
Assert.True(resultPermanent.
Permanent
);
841
Assert.True(result.
Permanent
);
864
Assert.True(result.
Permanent
);
883
Assert.False(resultTemporary.
Permanent
);
900
Assert.False(resultTemporary.
Permanent
);
917
Assert.True(resultPermanent.
Permanent
);
934
Assert.True(resultPermanent.
Permanent
);
954
Assert.False(resultTemporary.
Permanent
);
975
Assert.False(resultTemporary.
Permanent
);
996
Assert.True(resultPermanent.
Permanent
);
1283
Assert.True(resultPermanent.
Permanent
);
Microsoft.AspNetCore.Mvc.RazorPages (18)
PageBase.cs (9)
817
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to false and <see cref="RedirectToRouteResult.PreserveMethod"/>
839
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeName"/>.
850
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeValues"/>.
861
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeName"/>
874
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeName"/>
887
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeName"/>,
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 (9)
1145
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to false and <see cref="RedirectToRouteResult.PreserveMethod"/>
1170
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeName"/>.
1179
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeValues"/>.
1188
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeName"/>
1199
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeName"/>
1210
/// <see cref="RedirectToRouteResult.
Permanent
"/> set to true using the specified <paramref name="routeName"/>,
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)
708
Assert.False(resultTemporary.
Permanent
);
727
Assert.False(resultTemporary.
Permanent
);
748
Assert.False(result.
Permanent
);
771
Assert.False(result.
Permanent
);
792
Assert.True(resultPermanent.
Permanent
);
811
Assert.True(resultPermanent.
Permanent
);
832
Assert.True(result.
Permanent
);
855
Assert.True(result.
Permanent
);
874
Assert.False(resultTemporary.
Permanent
);
891
Assert.False(resultTemporary.
Permanent
);
908
Assert.True(resultPermanent.
Permanent
);
925
Assert.True(resultPermanent.
Permanent
);
1303
Assert.False(resultTemporary.
Permanent
);
1324
Assert.False(resultTemporary.
Permanent
);
1345
Assert.True(resultPermanent.
Permanent
);
1366
Assert.True(resultPermanent.
Permanent
);
PageTest.cs (16)
728
Assert.False(resultTemporary.
Permanent
);
747
Assert.False(resultTemporary.
Permanent
);
768
Assert.False(result.
Permanent
);
791
Assert.False(result.
Permanent
);
812
Assert.True(resultPermanent.
Permanent
);
831
Assert.True(resultPermanent.
Permanent
);
852
Assert.True(result.
Permanent
);
875
Assert.True(result.
Permanent
);
894
Assert.False(resultTemporary.
Permanent
);
911
Assert.False(resultTemporary.
Permanent
);
928
Assert.True(resultPermanent.
Permanent
);
945
Assert.True(resultPermanent.
Permanent
);
965
Assert.False(resultTemporary.
Permanent
);
986
Assert.False(resultTemporary.
Permanent
);
1007
Assert.True(resultPermanent.
Permanent
);
1028
Assert.True(resultPermanent.
Permanent
);