1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 23:31:13 -05:00

Seperated the application back into a seperate project

webfront is just a library now
This commit is contained in:
RaidMax
2018-04-08 13:48:40 -05:00
parent ff756f9288
commit 599027c4b6
20 changed files with 133 additions and 57 deletions

View File

@ -1,16 +1,20 @@
using System.IO;
using Microsoft.AspNetCore.Hosting;
using SharedLibraryCore.Interfaces;
namespace WebfrontCore
{
public class Program
{
public static void Main(string[] args)
public static IManager Manager;
public static void Init(IManager mgr)
{
BuildWebHost(args).Run();
Manager = mgr;
BuildWebHost().Run();
}
public static IWebHost BuildWebHost(string[] args) =>
public static IWebHost BuildWebHost() =>
new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseKestrel()