Add transaction support between services

This commit is contained in:
2025-10-27 18:09:09 +09:00
parent 6b3733001a
commit 9e526c54fa
11 changed files with 75 additions and 44 deletions

View File

@ -3,10 +3,10 @@ using Hcs.WebApp.Data.Hcs;
namespace Hcs.WebApp.BackgroundServices.OperationExecutors
{
public abstract class ExecutorBase(IClient client, IServiceScopeFactory scopeFactory, Operation operation) : IExecutor
public abstract class ExecutorBase(IClient client, IServiceScope scope, Operation operation) : IExecutor
{
protected readonly IClient client = client;
protected readonly IServiceScopeFactory scopeFactory = scopeFactory;
protected readonly IServiceScope scope = scope;
protected readonly Operation operation = operation;
public abstract Task<string> ExecuteAsync(CancellationToken cancellationToken);