1using System.Threading.Tasks;
12 private readonly
bool isAsynchronous;
22 this.processor = Processor;
45 return this.processor.Process(Object);
58 return Task.FromResult(
true);
61 return this.processor.ProcessAsync(Object);
68 public bool Flush() => this.processor.Flush();
74 public Task<bool>
FlushAsync() => this.processor.FlushAsync();
Processor that skips a given number of result records.
Task< bool > FlushAsync()
Called at the end of processing, to allow for flushing of buffers, etc.
OffsetProcessor(IProcessor< object > Processor, int Offset)
Processor that skips a given number of result records.
bool Process(object Object)
Processes an object synchronously.
Task< bool > ProcessAsync(object Object)
Processes an object asynchronously.
bool Flush()
Called at the end of processing, to allow for flushing of buffers, etc.
bool IsAsynchronous
If the processor operates asynchronously.
Interface for processors of objects.
bool IsAsynchronous
If the processor operates asynchronously.