Table of Contents

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

events IEnumerable<IDispatchEvent>
context IMessageContext

Returns

IReadOnlyList<CloudEventBatch>

ProcessBatchAsync(CloudEventBatch, CancellationToken)

Processes a batch of CloudEvents.

Task ProcessBatchAsync(CloudEventBatch batch, CancellationToken cancellationToken)

Parameters

batch CloudEventBatch
cancellationToken CancellationToken

Returns

Task

A Task representing the asynchronous operation.