Files
hcs/Hcs.WebApp/BackgroundServices/OperationExecutors/ExecutorBase.cs

15 lines
525 B
C#

using Hcs.Broker;
using Hcs.WebApp.Data.Hcs;
namespace Hcs.WebApp.BackgroundServices.OperationExecutors
{
public abstract class ExecutorBase(IClient client, IServiceScopeFactory scopeFactory, Operation operation) : IExecutor
{
protected readonly IClient client = client;
protected readonly IServiceScopeFactory scopeFactory = scopeFactory;
protected readonly Operation operation = operation;
public abstract Task<string> ExecuteAsync(CancellationToken cancellationToken);
}
}