Skip to content

IBatchContainer Methods

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.

GetEvents

abstract
public abstract IEnumerable<Tuple<T, StreamSequenceToken>> GetEvents<T>()
Gets events of a specific type from the batch.

ImportRequestContext

abstract
public abstract bool 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.

Returns

true if the RequestContext was indeed modified, false otherwise.