diff --git a/src/ApiService/Program.cs b/src/ApiService/Program.cs index 4dd6763..e7ea644 100644 --- a/src/ApiService/Program.cs +++ b/src/ApiService/Program.cs @@ -8,16 +8,12 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; -namespace ApiService -{ - public class Program - { - public static void Main(string[] args) - { - CreateHostBuilder(args).Build().Run(); - } - public static IHostBuilder CreateHostBuilder(string[] args) => + +CreateHostBuilder(args).Build().Run(); + + +static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { @@ -57,5 +53,3 @@ public static IHostBuilder CreateHostBuilder(string[] args) => }); }); }); - } -}