IBatchContainer Interface

Definition

Each queue message is allowed to be a heterogeneous, ordered set of events. IBatchContainer contains these events and allows users to query the batch for a specific type of event.

public interface IBatchContainer
type IBatchContainer = interface
Public Interface IBatchContainer
Derived

Properties

SequenceToken

Ges the stream sequence token for the start of this batch.

StreamGuid

Stream identifier for the stream this batch is part of.

StreamId

Ges the stream identifier for the stream this batch is part of.

StreamNamespace

Stream namespace 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.

ShouldDeliver(IStreamIdentity, Object, StreamFilterPredicate)

Decide whether this batch should be sent to the specified target.

Applies to