Added base service inheritance

dhcp-server
Pat Hartl 2023-04-20 00:24:46 -05:00
parent e64c4b2be1
commit 28e7de2670
3 changed files with 11 additions and 4 deletions

View File

@ -12,10 +12,8 @@ namespace LANCommander.Services
Error
}
public class ServerProcessService
public class ServerProcessService : BaseService
{
private readonly Logger Logger = LogManager.GetCurrentClassLogger();
public Dictionary<Guid, Process> Processes = new Dictionary<Guid, Process>();
public Dictionary<Guid, int> Threads { get; set; } = new Dictionary<Guid, int>();

View File

@ -4,7 +4,7 @@ using System.Linq.Expressions;
namespace LANCommander.Services
{
public abstract class BaseDatabaseService<T> where T : BaseModel
public abstract class BaseDatabaseService<T> : BaseService where T : BaseModel
{
public DatabaseContext Context { get; set; }
public HttpContext HttpContext { get; set; }

View File

@ -0,0 +1,9 @@
using NLog;
namespace LANCommander.Services
{
public abstract class BaseService
{
protected readonly Logger Logger = LogManager.GetCurrentClassLogger();
}
}