|
|
|
@ -1,13 +1,19 @@ |
|
|
|
using Microsoft.AspNetCore.Hosting; |
|
|
|
using Microsoft.Extensions.Configuration; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
|
|
|
|
namespace Mvc.Client { |
|
|
|
public static class Program { |
|
|
|
public static void Main(string[] args) { |
|
|
|
var configuration = new ConfigurationBuilder() |
|
|
|
.AddEnvironmentVariables() |
|
|
|
.AddCommandLine(args) |
|
|
|
.Build(); |
|
|
|
|
|
|
|
var host = new WebHostBuilder() |
|
|
|
.ConfigureLogging(options => options.AddConsole()) |
|
|
|
.ConfigureLogging(options => options.AddDebug()) |
|
|
|
.UseDefaultHostingConfiguration(args) |
|
|
|
.UseConfiguration(configuration) |
|
|
|
.UseIISIntegration() |
|
|
|
.UseKestrel() |
|
|
|
.UseStartup<Startup>() |
|
|
|
|