1 write to Permanent
Microsoft.AspNetCore.Mvc.Core (1)
LocalRedirectResult.cs (1)
50Permanent = 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)
54context.HttpContext.Response.StatusCode = result.Permanent ? 60context.HttpContext.Response.Redirect(destinationUrl, result.Permanent);
Microsoft.AspNetCore.Mvc.Core.Test (7)
ControllerBaseTest.cs (4)
151Assert.False(result.Permanent); 168Assert.True(result.Permanent); 185Assert.False(result.Permanent); 202Assert.True(result.Permanent);
LocalRedirectResultTest.cs (3)
28Assert.False(result.Permanent); 43Assert.True(result.Permanent); 58Assert.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)
142Assert.False(result.Permanent); 159Assert.True(result.Permanent); 176Assert.False(result.Permanent); 193Assert.True(result.Permanent);
PageTest.cs (4)
162Assert.False(result.Permanent); 179Assert.True(result.Permanent); 196Assert.False(result.Permanent); 213Assert.True(result.Permanent);