1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-02 23:41:21 +01:00

update web host builders

This commit is contained in:
Kyle Spearrin 2017-10-06 12:18:16 -04:00
parent 6c2ade2590
commit a78cdf2903
3 changed files with 15 additions and 24 deletions

View File

@ -1,4 +1,4 @@
using System.IO;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace Bit.Api
@ -7,14 +7,11 @@ namespace Bit.Api
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
WebHost
.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
host.Run();
.Build()
.Run();
}
}
}

View File

@ -1,4 +1,4 @@
using System.IO;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace Bit.Billing
@ -7,14 +7,11 @@ namespace Bit.Billing
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
WebHost
.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
host.Run();
.Build()
.Run();
}
}
}

View File

@ -1,4 +1,4 @@
using System.IO;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace Bit.Identity
@ -7,14 +7,11 @@ namespace Bit.Identity
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
WebHost
.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
host.Run();
.Build()
.Run();
}
}
}