2020-11-02 11:00:24 +02:00
|
|
|
using System.Diagnostics.CodeAnalysis;
|
2020-11-01 22:25:48 +02:00
|
|
|
using System.Threading.Tasks;
|
2020-10-22 22:20:21 +03:00
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
|
|
|
|
namespace MalwareMultiScan.Api
|
|
|
|
{
|
2020-11-02 11:00:24 +02:00
|
|
|
[ExcludeFromCodeCoverage]
|
2020-10-29 16:09:56 +02:00
|
|
|
internal static class Program
|
2020-10-22 22:20:21 +03:00
|
|
|
{
|
2020-11-01 22:25:48 +02:00
|
|
|
public static async Task Main(string[] args)
|
2020-10-22 22:20:21 +03:00
|
|
|
{
|
2020-11-01 22:25:48 +02:00
|
|
|
await Host.CreateDefaultBuilder(args)
|
|
|
|
.ConfigureWebHostDefaults(builder =>
|
|
|
|
{
|
|
|
|
builder.ConfigureKestrel(
|
|
|
|
options => options.Limits.MaxRequestBodySize = long.MaxValue);
|
2020-10-22 22:20:21 +03:00
|
|
|
|
2020-11-01 22:25:48 +02:00
|
|
|
builder.UseStartup<Startup>();
|
|
|
|
})
|
|
|
|
.UseConsoleLifetime()
|
|
|
|
.Build()
|
|
|
|
.RunAsync();
|
2020-10-23 11:11:19 +03:00
|
|
|
}
|
2020-10-22 22:20:21 +03:00
|
|
|
}
|
|
|
|
}
|