mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-23 13:02:24 +00:00
26 lines
742 B
C#
26 lines
742 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
namespace MalwareMultiScan.Api
|
|
{
|
|
[ExcludeFromCodeCoverage]
|
|
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();
|
|
}
|
|
}
|
|
} |