Added base service inheritance
This commit is contained in:
parent
e64c4b2be1
commit
28e7de2670
3 changed files with 11 additions and 4 deletions
|
@ -12,10 +12,8 @@ namespace LANCommander.Services
|
||||||
Error
|
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, Process> Processes = new Dictionary<Guid, Process>();
|
||||||
public Dictionary<Guid, int> Threads { get; set; } = new Dictionary<Guid, int>();
|
public Dictionary<Guid, int> Threads { get; set; } = new Dictionary<Guid, int>();
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ using System.Linq.Expressions;
|
||||||
|
|
||||||
namespace LANCommander.Services
|
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 DatabaseContext Context { get; set; }
|
||||||
public HttpContext HttpContext { get; set; }
|
public HttpContext HttpContext { get; set; }
|
9
LANCommander/Services/_BaseService.cs
Normal file
9
LANCommander/Services/_BaseService.cs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
using NLog;
|
||||||
|
|
||||||
|
namespace LANCommander.Services
|
||||||
|
{
|
||||||
|
public abstract class BaseService
|
||||||
|
{
|
||||||
|
protected readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue