Get hcs request result separately
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user