You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
791 B
25 lines
791 B
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())
|
|
.UseConfiguration(configuration)
|
|
.UseIISIntegration()
|
|
.UseKestrel()
|
|
.UseStartup<Startup>()
|
|
.Build();
|
|
|
|
host.Run();
|
|
}
|
|
}
|
|
}
|
|
|