1using System.Threading.Tasks;
12 private readonly
bool isAsynchronous;
22 this.processor = Processor;
43 return this.processor.Process(Object);
54 return Task.FromResult(
false);
57 return this.processor.ProcessAsync(Object);
64 public bool Flush() => this.processor.Flush();
70 public Task<bool>
FlushAsync() => this.processor.FlushAsync();
Processor that limits the return set to a maximum number of records.
MaxCountProcessor(IProcessor< object > Processor, int Count)
Enumerator that limits the return set to a maximum number of records.
Task< bool > ProcessAsync(object Object)
Processes an object asynchronously.
Task< bool > FlushAsync()
Called at the end of processing, to allow for flushing of buffers, etc.
bool IsAsynchronous
If the processor operates asynchronously.
bool Process(object Object)
Processes an object synchronously.
bool Flush()
Called at the end of processing, to allow for flushing of buffers, etc.
Interface for processors of objects.
bool IsAsynchronous
If the processor operates asynchronously.