Interface ICloudEventBatchProcessor
- Namespace
- Excalibur.Dispatch.CloudEvents
- Assembly
- Excalibur.Dispatch.dll
Interface for CloudEvent batch processing.
public interface ICloudEventBatchProcessor
- Extension Methods
Methods
CreateBatches(IEnumerable<IDispatchEvent>, IMessageContext)
Creates batches from a collection of events.
IReadOnlyList<CloudEventBatch> CreateBatches(IEnumerable<IDispatchEvent> events, IMessageContext context)
Parameters
eventsIEnumerable<IDispatchEvent>contextIMessageContext
Returns
ProcessBatchAsync(CloudEventBatch, CancellationToken)
Processes a batch of CloudEvents.
Task ProcessBatchAsync(CloudEventBatch batch, CancellationToken cancellationToken)
Parameters
batchCloudEventBatchcancellationTokenCancellationToken