1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00
Files
mxpv-podsync/src/Podsync/Program.cs

29 lines
813 B
C#
Raw Normal View History

2016-12-11 21:16:48 -08:00
using System.IO;
2016-10-02 09:29:25 -04:00
using Microsoft.AspNetCore.Hosting;
namespace Podsync
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel(options =>
{
options.AddServerHeader = false;
// Temporary workaround for Error -4047 EPIPE broken pipe
// Remove this after upgrade to 1.1.0
// See https://github.com/aspnet/KestrelHttpServer/issues/1182
options.ThreadCount = 1;
})
2016-10-02 09:29:25 -04:00
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.Build();
host.Run();
}
}
}