1 write to Permanent
Microsoft.AspNetCore.Mvc.Core (1)
RedirectToPageResult.cs (1)
155
Permanent
= permanent;
46 references to Permanent
Microsoft.AspNetCore.Mvc.Core (7)
ControllerBase.cs (5)
950
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
961
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
972
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
984
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
997
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
Infrastructure\RedirectToPageResultExecutor.cs (2)
57
context.HttpContext.Response.StatusCode = result.
Permanent
?
63
context.HttpContext.Response.Redirect(destinationUrl, result.
Permanent
);
Microsoft.AspNetCore.Mvc.Core.Test (8)
ControllerBaseTest.cs (8)
1115
Assert.True(result.
Permanent
);
1133
Assert.True(result.
Permanent
);
1157
Assert.True(result.
Permanent
);
1177
Assert.True(result.
Permanent
);
1205
Assert.True(result.
Permanent
);
1221
Assert.False(result.
Permanent
);
1241
Assert.False(resultPermanent.
Permanent
);
1262
Assert.True(resultPermanent.
Permanent
);
Microsoft.AspNetCore.Mvc.RazorPages (13)
PageBase.cs (6)
992
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
1002
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
1012
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
1023
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
1034
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
1046
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
PageModel.cs (7)
1334
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
1344
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
1353
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
1364
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
1375
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
1386
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
1398
/// <returns>The <see cref="RedirectToPageResult"/> with <see cref="RedirectToPageResult.
Permanent
"/> set.</returns>
Microsoft.AspNetCore.Mvc.RazorPages.Test (18)
PageModelTest.cs (9)
1109
Assert.True(result.
Permanent
);
1127
Assert.True(result.
Permanent
);
1151
Assert.True(result.
Permanent
);
1177
Assert.True(result.
Permanent
);
1197
Assert.True(result.
Permanent
);
1225
Assert.True(result.
Permanent
);
1241
Assert.False(result.
Permanent
);
1261
Assert.False(resultPermanent.
Permanent
);
1282
Assert.True(resultPermanent.
Permanent
);
PageTest.cs (9)
1183
Assert.True(result.
Permanent
);
1201
Assert.True(result.
Permanent
);
1225
Assert.True(result.
Permanent
);
1251
Assert.True(result.
Permanent
);
1271
Assert.True(result.
Permanent
);
1299
Assert.True(result.
Permanent
);
1315
Assert.False(result.
Permanent
);
1335
Assert.False(resultPermanent.
Permanent
);
1356
Assert.True(resultPermanent.
Permanent
);