1 write to Permanent
Microsoft.AspNetCore.Mvc.Core (1)
LocalRedirectResult.cs (1)
50
Permanent
= permanent;
26 references to Permanent
Microsoft.AspNetCore.Mvc.Core (5)
ControllerBase.cs (3)
394
/// Creates a <see cref="LocalRedirectResult"/> object with <see cref="LocalRedirectResult.
Permanent
"/> set to
408
/// Creates a <see cref="LocalRedirectResult"/> object with <see cref="LocalRedirectResult.
Permanent
"/> set to
423
/// Creates a <see cref="LocalRedirectResult"/> object with <see cref="LocalRedirectResult.
Permanent
"/> set to
Infrastructure\LocalRedirectResultExecutor.cs (2)
54
context.HttpContext.Response.StatusCode = result.
Permanent
?
60
context.HttpContext.Response.Redirect(destinationUrl, result.
Permanent
);
Microsoft.AspNetCore.Mvc.Core.Test (7)
ControllerBaseTest.cs (4)
151
Assert.False(result.
Permanent
);
168
Assert.True(result.
Permanent
);
185
Assert.False(result.
Permanent
);
202
Assert.True(result.
Permanent
);
LocalRedirectResultTest.cs (3)
28
Assert.False(result.
Permanent
);
43
Assert.True(result.
Permanent
);
58
Assert.True(result.
Permanent
);
Microsoft.AspNetCore.Mvc.RazorPages (6)
PageBase.cs (3)
419
/// Creates a <see cref="LocalRedirectResult"/> object with <see cref="LocalRedirectResult.
Permanent
"/> set to
432
/// Creates a <see cref="LocalRedirectResult"/> object with <see cref="LocalRedirectResult.
Permanent
"/> set to
446
/// Creates a <see cref="LocalRedirectResult"/> object with <see cref="LocalRedirectResult.
Permanent
"/> set to
PageModel.cs (3)
726
/// Creates a <see cref="LocalRedirectResult"/> object with <see cref="LocalRedirectResult.
Permanent
"/> set to
739
/// Creates a <see cref="LocalRedirectResult"/> object with <see cref="LocalRedirectResult.
Permanent
"/> set to
753
/// Creates a <see cref="LocalRedirectResult"/> object with <see cref="LocalRedirectResult.
Permanent
"/> set to
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
PageModelTest.cs (4)
142
Assert.False(result.
Permanent
);
159
Assert.True(result.
Permanent
);
176
Assert.False(result.
Permanent
);
193
Assert.True(result.
Permanent
);
PageTest.cs (4)
162
Assert.False(result.
Permanent
);
179
Assert.True(result.
Permanent
);
196
Assert.False(result.
Permanent
);
213
Assert.True(result.
Permanent
);