Megosztás a következőn keresztül:


EventProcessorHost.RegisterEventProcessorAsync Method

Definition

Overloads

RegisterEventProcessorAsync<T>()

Asynchronously registers the IEventProcessor interface implementation with the host using the DefaultEventProcessorFactory<T> factory. This method also starts the host and enables it to start participating in the partition distribution process.

RegisterEventProcessorAsync<T>(EventProcessorOptions)

This registers IEventProcessor implementation with the host using DefaultEventProcessorFactory<T>.
This also starts the host and causes it to start participating in the partition distribution process.

RegisterEventProcessorAsync<T>()

Asynchronously registers the IEventProcessor interface implementation with the host using the DefaultEventProcessorFactory<T> factory. This method also starts the host and enables it to start participating in the partition distribution process.

public System.Threading.Tasks.Task RegisterEventProcessorAsync<T> () where T : Microsoft.ServiceBus.Messaging.IEventProcessor;
member this.RegisterEventProcessorAsync : unit -> System.Threading.Tasks.Task (requires 'T :> Microsoft.ServiceBus.Messaging.IEventProcessor)
Public Function RegisterEventProcessorAsync(Of T As IEventProcessor) () As Task

Type Parameters

T

Implementation of your application-specific IEventProcessor.

Returns

A task indicating that the EventProcessorHost instance has started.

Applies to

RegisterEventProcessorAsync<T>(EventProcessorOptions)

This registers IEventProcessor implementation with the host using DefaultEventProcessorFactory<T>.
This also starts the host and causes it to start participating in the partition distribution process.

public System.Threading.Tasks.Task RegisterEventProcessorAsync<T> (Microsoft.ServiceBus.Messaging.EventProcessorOptions processorOptions) where T : Microsoft.ServiceBus.Messaging.IEventProcessor;
member this.RegisterEventProcessorAsync : Microsoft.ServiceBus.Messaging.EventProcessorOptions -> System.Threading.Tasks.Task (requires 'T :> Microsoft.ServiceBus.Messaging.IEventProcessor)
Public Function RegisterEventProcessorAsync(Of T As IEventProcessor) (processorOptions As EventProcessorOptions) As Task

Type Parameters

T

Implementation of your application specific IEventProcessor.

Parameters

processorOptions
EventProcessorOptions

EventProcessorOptions to control various aspects of message pump created when ownership is acquired for a particular partition of EventHub.

Returns

A task to indicate EventProcessorHost instance is started.

Applies to