EventHubBatchContainer Class

Definition

Batch container that is delivers payload and stream position information for a set of events in an EventHub EventData.

[Orleans.GenerateSerializer]
[System.Serializable]
public class EventHubBatchContainer : Orleans.Streams.IBatchContainer
[<Orleans.GenerateSerializer>]
[<System.Serializable>]
type EventHubBatchContainer = class
    interface IBatchContainer
Public Class EventHubBatchContainer
Implements IBatchContainer
Inheritance
EventHubBatchContainer
Attributes
Implements

Constructors

EventHubBatchContainer(EventHubMessage, Serializer)

Batch container that delivers events from cached EventHub data associated with an orleans stream

Properties

SequenceToken

Stream Sequence Token for the start of this batch.

StreamId

Stream identifier for the stream this batch is part of.

Methods

GetEvents<T>()

Gets events of a specific type from the batch.

ImportRequestContext()

Gives an opportunity to IBatchContainer to set any data in the RequestContext before this IBatchContainer is sent to consumers. It can be the data that was set at the time event was generated and enqueued into the persistent provider or any other data.

ToEventData<T>(Serializer, StreamId, IEnumerable<T>, Dictionary<String,Object>)

Put events list and its context into a EventData object

Applies to