Get hcs request result separately

This commit is contained in:
2025-10-31 16:44:54 +09:00
parent a37791d615
commit 6fc2db95ec
6 changed files with 113 additions and 10 deletions

View File

@ -19,11 +19,19 @@ namespace Hcs.WebApp.Services
select campaign).ToListAsync();
}
public async Task<IEnumerable<Operation>> GetInitiatedOperationsAsync()
public async Task<IEnumerable<Operation>> GetNotExecutedOperationsAsync()
{
using var context = GetNewContext();
return await (from operation in context.Operations
where string.IsNullOrEmpty(operation.MessageGuid)
where string.IsNullOrEmpty(operation.MessageGuid) && !operation.EndedAt.HasValue
select operation).ToListAsync();
}
public async Task<IEnumerable<Operation>> GetResultWaitingOperationsAsync()
{
using var context = GetNewContext();
return await (from operation in context.Operations
where !string.IsNullOrEmpty(operation.MessageGuid) && !operation.EndedAt.HasValue
select operation).ToListAsync();
}