aboutsummaryrefslogtreecommitdiff
path: root/src/Web/DevHive.Web/Program.cs
blob: fdb6889993bac691bd5b876f974cc9d618375579 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace DevHive.Web
{
	#pragma warning disable IDE0055, S1118

	public class Program
	{
		private const int HTTP_PORT = 5000;

		public static void Main(string[] args)
		{
			CreateHostBuilder(args).Build().Run();
		}

		public static IHostBuilder CreateHostBuilder(string[] args) =>
			Host.CreateDefaultBuilder(args)
				.ConfigureWebHostDefaults(webBuilder =>
				{
					webBuilder.ConfigureKestrel(opt => opt.ListenLocalhost(HTTP_PORT));
					webBuilder.UseStartup<Startup>();
				});
	}
}