Remove BaseModel and BaseService from Jobs namespace
Deleted BaseModel and BaseService classes, along with their associated using statements and members. This removes the abstraction layers for database, logging, and state management from EnvelopeGenerator.ServiceHost.Jobs.
This commit is contained in:
@@ -1,18 +0,0 @@
|
|||||||
using DigitalData.Modules.Database;
|
|
||||||
using DigitalData.Modules.Logging;
|
|
||||||
|
|
||||||
namespace EnvelopeGenerator.ServiceHost.Jobs;
|
|
||||||
|
|
||||||
public abstract class BaseModel
|
|
||||||
{
|
|
||||||
protected MSSQLServer Database { get; }
|
|
||||||
protected Logger Logger { get; }
|
|
||||||
protected State State { get; }
|
|
||||||
|
|
||||||
protected BaseModel(State state)
|
|
||||||
{
|
|
||||||
Logger = state.LogConfig!.GetLogger();
|
|
||||||
Database = state.Database!;
|
|
||||||
State = state;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
using DigitalData.Modules.Base;
|
|
||||||
|
|
||||||
namespace EnvelopeGenerator.ServiceHost.Jobs;
|
|
||||||
|
|
||||||
public class BaseService : BaseClass
|
|
||||||
{
|
|
||||||
protected State State { get; }
|
|
||||||
|
|
||||||
public BaseService(State state) : base(state.LogConfig!)
|
|
||||||
{
|
|
||||||
State = state;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user