mirror of
https://github.com/fergalmoran/retns-api.git
synced 2025-12-22 01:51:33 +00:00
26 lines
771 B
C#
26 lines
771 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace retns.homework.api {
|
|
public class Program {
|
|
public static void Main(string[] args) {
|
|
CreateWebHostBuilder(args).Build().Run();
|
|
}
|
|
|
|
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
|
|
WebHost.CreateDefaultBuilder(args)
|
|
.UseStartup<Startup>()
|
|
.ConfigureKestrel(options => {
|
|
options.Listen(IPAddress.Any, 5000);
|
|
});
|
|
}
|
|
}
|