-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
Priority:2Work that is important, but not critical for the releaseWork that is important, but not critical for the releaseanalyzerIndicates an issue which is related to analyzer experienceIndicates an issue which is related to analyzer experiencearea-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-minimal-hostingold-area-web-frameworks-do-not-use*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Milestone
Description
We should rewrite:
var builder = WebApplication.CreateBuilder(args);
builder.Host.ConfigureServices(services =>
{
services.AddAntiforgery();
});
// OR
builder.WebHost.ConfigureServices(services =>
{
services.AddAntiforgery();
});To
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddAntiforgery();saint4eva and martincostello
Metadata
Metadata
Assignees
Labels
Priority:2Work that is important, but not critical for the releaseWork that is important, but not critical for the releaseanalyzerIndicates an issue which is related to analyzer experienceIndicates an issue which is related to analyzer experiencearea-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-minimal-hostingold-area-web-frameworks-do-not-use*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels