mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-24 05:22:22 +00:00
24 lines
673 B
C#
24 lines
673 B
C#
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
namespace MalwareMultiScan.Api
|
|
{
|
|
internal static class Program
|
|
{
|
|
public static async Task Main(string[] args)
|
|
{
|
|
await Host.CreateDefaultBuilder(args)
|
|
.ConfigureWebHostDefaults(builder =>
|
|
{
|
|
builder.ConfigureKestrel(
|
|
options => options.Limits.MaxRequestBodySize = long.MaxValue);
|
|
|
|
builder.UseStartup<Startup>();
|
|
})
|
|
.UseConsoleLifetime()
|
|
.Build()
|
|
.RunAsync();
|
|
}
|
|
}
|
|
} |