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 06d3de375b
commit 6d5c368954
20 changed files with 133 additions and 57 deletions

View File

@ -28,7 +28,7 @@ namespace WebfrontCore.ViewComponents
}
var penalties = await IW4MAdmin.ApplicationManager.GetInstance().GetPenaltyService().GetRecentPenalties(15, offset);
var penalties = await Program.Manager.GetPenaltyService().GetRecentPenalties(15, offset);
var penaltiesDto = penalties.Select(p => new PenaltyInfo()
{
OffenderId = p.OffenderId,

View File

@ -1,9 +1,6 @@
using Microsoft.AspNetCore.Mvc;
using SharedLibraryCore.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace WebfrontCore.ViewComponents
{
@ -11,7 +8,7 @@ namespace WebfrontCore.ViewComponents
{
public IViewComponentResult Invoke()
{
var servers = IW4MAdmin.Program.ServerManager.GetServers();
var servers = Program.Manager.GetServers();
var serverInfo = servers.Select(s => new ServerInfo()
{
Name = s.Hostname,