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

IEventProcessor.ProcessEventsAsync 方法

定义

当一批事件到达时由处理器主机调用。

这是完成事件处理程序的实际工作的地方。

public System.Threading.Tasks.Task ProcessEventsAsync (Microsoft.Azure.EventHubs.Processor.PartitionContext context, System.Collections.Generic.IEnumerable<Microsoft.Azure.EventHubs.EventData> messages);
abstract member ProcessEventsAsync : Microsoft.Azure.EventHubs.Processor.PartitionContext * seq<Microsoft.Azure.EventHubs.EventData> -> System.Threading.Tasks.Task
Public Function ProcessEventsAsync (context As PartitionContext, messages As IEnumerable(Of EventData)) As Task

参数

context
PartitionContext

有关分区的信息。

messages
IEnumerable<EventData>

要处理的事件。

返回

适用于