Add data parser base classes
This commit is contained in:
14
Hcs.WebApp/BackgroundServices/DataParsers/DataParserBase.cs
Normal file
14
Hcs.WebApp/BackgroundServices/DataParsers/DataParserBase.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using Hcs.Broker;
|
||||
using Hcs.WebApp.Data.Hcs;
|
||||
|
||||
namespace Hcs.WebApp.BackgroundServices.DataParsers
|
||||
{
|
||||
public abstract class DataParserBase(IClient client, IServiceScope scope, Operation operation) : IDataParser
|
||||
{
|
||||
protected readonly IClient client = client;
|
||||
protected readonly IServiceScope scope = scope;
|
||||
protected readonly Operation operation = operation;
|
||||
|
||||
public abstract Task<bool> ParseAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user