Skip to content

EventHubAdapterFactory.QueueMessageBatchAsync(StreamId, IEnumerable<T>, StreamSequenceToken?, Dictionary<string, object>)

QueueMessageBatchAsync(StreamId, IEnumerable<T>, StreamSequenceToken?, Dictionary<string, object>)

virtual
View source
public virtual Task QueueMessageBatchAsync<T>(StreamId streamId, IEnumerable<T> events, StreamSequenceToken? token, Dictionary<string, object>? requestContext)
Writes a set of events to the queue as a single batch associated with the provided streamId.

Parameters

streamIdStreamId
The destination stream.
eventsIEnumerable<T>
The events to enqueue.
tokenStreamSequenceToken?
The stream sequence token, which must be null for Event Hubs streams.
requestContextDictionary<string, object>
The request context to propagate with the events.

Returns

A task which represents the enqueue operation.