你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventHubBufferedProducerClient.OnSendSucceededAsync 方法

定义

负责在成功发布一批事件时引发 SendEventBatchSucceededAsync 事件。

protected virtual System.Threading.Tasks.Task OnSendSucceededAsync (System.Collections.Generic.IReadOnlyList<Azure.Messaging.EventHubs.EventData> events, string partitionId, System.Threading.CancellationToken cancellationToken = default);
abstract member OnSendSucceededAsync : System.Collections.Generic.IReadOnlyList<Azure.Messaging.EventHubs.EventData> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnSendSucceededAsync : System.Collections.Generic.IReadOnlyList<Azure.Messaging.EventHubs.EventData> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnSendSucceededAsync (events As IReadOnlyList(Of EventData), partitionId As String, Optional cancellationToken As CancellationToken = Nothing) As Task

参数

events
IReadOnlyList<EventData>

属于成功发布的批处理的事件集。

partitionId
String

将事件批处理发布到的分区的标识符。

cancellationToken
CancellationToken

一个 CancellationToken 实例,用于向请求发出取消发布信号。

返回

适用于