Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (29 sloc) 924 Bytes
using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
namespace Datasilk
{
public class Program
{
public static void Main(string[] args)
{
var config = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddCommandLine(args)
.Build();
var host = new WebHostBuilder()
.UseIISIntegration()
.UseKestrel(
options =>
{
options.Limits.MaxRequestBodySize = null;
}
)
.UseContentRoot(Directory.GetCurrentDirectory())
.UseStartup<global::Startup>()
.Build();
host.Run();
}
}
}