Share via


IBatchContainer 介面

定義

每個佇列訊息都可以是異質且已排序的事件集。 IBatchContainer 包含這些事件,並可讓使用者查詢特定類型的事件批次。

public interface IBatchContainer
type IBatchContainer = interface
Public Interface IBatchContainer
衍生

屬性

SequenceToken

針對此批次開頭的資料流程順序權杖。

StreamGuid

此批次所屬資料流程的資料流程識別碼。

StreamId

為此批次所屬之資料流程的資料流程識別碼。

StreamNamespace

此批次所屬資料流程的資料流程命名空間。

方法

GetEvents<T>()

從批次取得特定類型的事件。

ImportRequestContext()

IBatchContainer有機會在傳送資料 IBatchContainer 給取用者之前,在 中 RequestContext 設定任何資料。 它可以是產生事件時所設定的資料,並加入持續性提供者或任何其他資料中。

ShouldDeliver(IStreamIdentity, Object, StreamFilterPredicate)

決定是否要將此批次傳送至指定的目標。

適用於