| | | 1 | | using Elsa.Common.Models; |
| | | 2 | | using Elsa.Workflows.Runtime.Entities; |
| | | 3 | | using Elsa.Workflows.Runtime.Filters; |
| | | 4 | | using Elsa.Workflows.Runtime.OrderDefinitions; |
| | | 5 | | |
| | | 6 | | namespace Elsa.Workflows.Runtime.Stores; |
| | | 7 | | |
| | | 8 | | public class NoopWorkflowExecutionLogStore : IWorkflowExecutionLogStore |
| | | 9 | | { |
| | | 10 | | public Task AddAsync(WorkflowExecutionLogRecord record, CancellationToken cancellationToken = default) |
| | | 11 | | { |
| | 0 | 12 | | return Task.CompletedTask; |
| | | 13 | | } |
| | | 14 | | |
| | | 15 | | public Task AddManyAsync(IEnumerable<WorkflowExecutionLogRecord> records, CancellationToken cancellationToken = defa |
| | | 16 | | { |
| | 0 | 17 | | return Task.CompletedTask; |
| | | 18 | | } |
| | | 19 | | |
| | | 20 | | public Task SaveAsync(WorkflowExecutionLogRecord record, CancellationToken cancellationToken = default) |
| | | 21 | | { |
| | 0 | 22 | | return Task.CompletedTask; |
| | | 23 | | } |
| | | 24 | | |
| | | 25 | | public Task SaveManyAsync(IEnumerable<WorkflowExecutionLogRecord> records, CancellationToken cancellationToken = def |
| | | 26 | | { |
| | 0 | 27 | | return Task.CompletedTask; |
| | | 28 | | } |
| | | 29 | | |
| | | 30 | | public Task<WorkflowExecutionLogRecord?> FindAsync(WorkflowExecutionLogRecordFilter filter, CancellationToken cancel |
| | | 31 | | { |
| | 0 | 32 | | return Task.FromResult<WorkflowExecutionLogRecord?>(null); |
| | | 33 | | } |
| | | 34 | | |
| | | 35 | | public Task<WorkflowExecutionLogRecord?> FindAsync<TOrderBy>(WorkflowExecutionLogRecordFilter filter, WorkflowExecut |
| | | 36 | | { |
| | 0 | 37 | | return Task.FromResult<WorkflowExecutionLogRecord?>(null); |
| | | 38 | | } |
| | | 39 | | |
| | | 40 | | public Task<Page<WorkflowExecutionLogRecord>> FindManyAsync(WorkflowExecutionLogRecordFilter filter, PageArgs pageAr |
| | | 41 | | { |
| | 0 | 42 | | return Task.FromResult(new Page<WorkflowExecutionLogRecord>(new List<WorkflowExecutionLogRecord>(0), 0)); |
| | | 43 | | } |
| | | 44 | | |
| | | 45 | | public Task<Page<WorkflowExecutionLogRecord>> FindManyAsync<TOrderBy>(WorkflowExecutionLogRecordFilter filter, PageA |
| | | 46 | | { |
| | 0 | 47 | | return Task.FromResult(new Page<WorkflowExecutionLogRecord>(new List<WorkflowExecutionLogRecord>(0), 0)); |
| | | 48 | | } |
| | | 49 | | |
| | | 50 | | public Task<long> DeleteManyAsync(WorkflowExecutionLogRecordFilter filter, CancellationToken cancellationToken = def |
| | | 51 | | { |
| | 0 | 52 | | return Task.FromResult(0L); |
| | | 53 | | } |
| | | 54 | | } |