导出 (0) 打印
全部展开

IEventProcessor 接口

注:本页面内容可能不完全适用中国大陆地区运营的 Windows Azure服务。如要了解不同地区 Windows Azure 服务的差异, 请参考本网站.

Provides methods for event processors. Applications must implement this interface, which enables the handling of events from Event Hubs. This interface is the main extensibility point for the EventProcessorHost and RegisterProcessor<(Of <<'(T>)>>)(Lease, ICheckpointManager).

命名空间:  Microsoft.ServiceBus.Messaging
程序集:  Microsoft.ServiceBus(在 Microsoft.ServiceBus.dll 中)

public interface IEventProcessor

IEventProcessor 类型公开以下成员。

  名称说明
公共方法CloseAsyncCalled when the ownership of partition moves to a different node for load-balancing purpose, or when the host is shutting down. Called in response to EventHubConsumerGroup..::..UnregisterProcessorAsync(Lease, CloseReason).
公共方法OpenAsyncInitializes the Event Hub processor instance. This method is called before any event data is passed to this processor instance.
公共方法ProcessEventsAsyncAsynchronously processes the specified context and messages. This method is called when there are new messages in the Event Hub stream. Make sure to checkpoint only when you are finished processing all the events in each batch.
页首

社区附加资源

添加
显示:
© 2014 Microsoft