-
Notifications
You must be signed in to change notification settings - Fork 26
/
Program.cs
40 lines (35 loc) · 1.27 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using wow.tools.local.Services;
namespace wow.tools.local
{
public class Program
{
public static void Main(string[] args)
{
try
{
var keyRes = CASC.LoadKeys();
if (!keyRes)
throw new Exception("Failed to load TACT keys");
// this will override the config.json values if the relevant command line flags are present
SettingsManager.ParseCommandLineArguments(args);
CASC.InitCasc(SettingsManager.wowFolder, SettingsManager.wowProduct);
}
catch (Exception e)
{
Console.WriteLine("Exception initializing CASC: " + e.Message);
}
CreateWebHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateWebHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.ConfigureKestrel(serverOptions =>
{
serverOptions.Limits.MaxConcurrentConnections = 500;
serverOptions.Limits.MaxConcurrentUpgradedConnections = 500;
})
.UseStartup<Startup>();
});
}
}