共用方式為


EventHubBatchContainer 類別

定義

Batch 容器,可提供 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
繼承
EventHubBatchContainer
屬性
實作

建構函式

EventHubBatchContainer(EventHubMessage, Serializer)

批次容器,此容器會從與串流相關聯的快取 EventHub 資料傳遞事件

屬性

SequenceToken

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

StreamId

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

方法

GetEvents<T>()

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

ImportRequestContext()

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

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

將事件清單及其內容放入 EventData 物件中

適用於