Home > database >  Is it correct place to set DefaultConnectionLimit for .NET Core app?
Is it correct place to set DefaultConnectionLimit for .NET Core app?

Time:01-21

Is it a correct place to set 'DefaultConnectionLimit' for .NET Core app?

public static void Main(string[] args)
{
    ServicePointManager.Expect100Continue = false;
    ServicePointManager.DefaultConnectionLimit = 100;
    BuildWebHost(args).Run();
}

CodePudding user response:

You can configure it in Program.cs , But usually we will configure some files in ConfigureServices in Startup.cs.

  •  Tags:  
  • Related