Added base service inheritance
parent
e64c4b2be1
commit
28e7de2670
|
@ -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>();
|
||||
|
||||
|
|
|
@ -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; }
|
|
@ -0,0 +1,9 @@
|
|||
using NLog;
|
||||
|
||||
namespace LANCommander.Services
|
||||
{
|
||||
public abstract class BaseService
|
||||
{
|
||||
protected readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue