| | | 1 | | using Elsa.Workflows.Runtime.Entities; |
| | | 2 | | using Elsa.Workflows.Runtime.Filters; |
| | | 3 | | using Elsa.Workflows.Runtime.OrderDefinitions; |
| | | 4 | | |
| | | 5 | | namespace Elsa.Workflows.Runtime.Stores; |
| | | 6 | | |
| | | 7 | | public class NoopActivityExecutionStore : IActivityExecutionStore |
| | | 8 | | { |
| | | 9 | | public Task SaveAsync(ActivityExecutionRecord record, CancellationToken cancellationToken = default) |
| | | 10 | | { |
| | 0 | 11 | | return Task.CompletedTask; |
| | | 12 | | } |
| | | 13 | | |
| | | 14 | | public Task SaveManyAsync(IEnumerable<ActivityExecutionRecord> records, CancellationToken cancellationToken = defaul |
| | | 15 | | { |
| | 0 | 16 | | return Task.CompletedTask; |
| | | 17 | | } |
| | | 18 | | |
| | | 19 | | public Task AddManyAsync(IEnumerable<ActivityExecutionRecord> records, CancellationToken cancellationToken = default |
| | | 20 | | { |
| | 0 | 21 | | return Task.CompletedTask; |
| | | 22 | | } |
| | | 23 | | |
| | | 24 | | public Task<ActivityExecutionRecord?> FindAsync(ActivityExecutionRecordFilter filter, CancellationToken cancellation |
| | | 25 | | { |
| | 0 | 26 | | return Task.FromResult<ActivityExecutionRecord?>(null); |
| | | 27 | | } |
| | | 28 | | |
| | | 29 | | public Task<IEnumerable<ActivityExecutionRecord>> FindManyAsync<TOrderBy>(ActivityExecutionRecordFilter filter, Acti |
| | | 30 | | { |
| | 0 | 31 | | return Task.FromResult<IEnumerable<ActivityExecutionRecord>>(Array.Empty<ActivityExecutionRecord>()); |
| | | 32 | | } |
| | | 33 | | |
| | | 34 | | public Task<IEnumerable<ActivityExecutionRecord>> FindManyAsync(ActivityExecutionRecordFilter filter, CancellationTo |
| | | 35 | | { |
| | 0 | 36 | | return Task.FromResult<IEnumerable<ActivityExecutionRecord>>(Array.Empty<ActivityExecutionRecord>()); |
| | | 37 | | } |
| | | 38 | | |
| | | 39 | | public Task<IEnumerable<ActivityExecutionRecordSummary>> FindManySummariesAsync<TOrderBy>(ActivityExecutionRecordFil |
| | | 40 | | { |
| | 0 | 41 | | return Task.FromResult<IEnumerable<ActivityExecutionRecordSummary>>(Array.Empty<ActivityExecutionRecordSummary>( |
| | | 42 | | } |
| | | 43 | | |
| | | 44 | | public Task<IEnumerable<ActivityExecutionRecordSummary>> FindManySummariesAsync(ActivityExecutionRecordFilter filter |
| | | 45 | | { |
| | 0 | 46 | | return Task.FromResult<IEnumerable<ActivityExecutionRecordSummary>>(Array.Empty<ActivityExecutionRecordSummary>( |
| | | 47 | | } |
| | | 48 | | |
| | | 49 | | public Task<long> CountAsync(ActivityExecutionRecordFilter filter, CancellationToken cancellationToken = default) |
| | | 50 | | { |
| | 0 | 51 | | return Task.FromResult(0L); |
| | | 52 | | } |
| | | 53 | | |
| | | 54 | | public Task<long> DeleteManyAsync(ActivityExecutionRecordFilter filter, CancellationToken cancellationToken = defaul |
| | | 55 | | { |
| | 0 | 56 | | return Task.FromResult(0L); |
| | | 57 | | } |
| | | 58 | | } |