4 changed files with 40 additions and 34 deletions
@ -0,0 +1,19 @@ |
|||
using Microsoft.AspNetCore.Hosting; |
|||
using Microsoft.Extensions.Logging; |
|||
|
|||
namespace Mvc.Client { |
|||
public static class Program { |
|||
public static void Main(string[] args) { |
|||
var host = new WebHostBuilder() |
|||
.ConfigureLogging(options => options.AddConsole()) |
|||
.ConfigureLogging(options => options.AddDebug()) |
|||
.UseDefaultHostingConfiguration(args) |
|||
.UseIISPlatformHandlerUrl() |
|||
.UseServer("Microsoft.AspNetCore.Server.Kestrel") |
|||
.UseStartup<Startup>() |
|||
.Build(); |
|||
|
|||
host.Run(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
using Microsoft.AspNetCore.Hosting; |
|||
using Microsoft.Extensions.Logging; |
|||
|
|||
namespace Mvc.Server { |
|||
public static class Program { |
|||
public static void Main(string[] args) { |
|||
var host = new WebHostBuilder() |
|||
.ConfigureLogging(options => options.AddConsole()) |
|||
.ConfigureLogging(options => options.AddDebug()) |
|||
.UseDefaultHostingConfiguration(args) |
|||
.UseIISPlatformHandlerUrl() |
|||
.UseServer("Microsoft.AspNetCore.Server.Kestrel") |
|||
.UseStartup<Startup>() |
|||
.Build(); |
|||
|
|||
host.Run(); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue