Share via


EventProcessorHost.RegisterEventProcessorAsync<T> Method (EventProcessorOptions)

 

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.

Namespace:   Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus.Messaging.EventProcessorHost (in Microsoft.ServiceBus.Messaging.EventProcessorHost.dll)

Syntax

public Task RegisterEventProcessorAsync<T>(
    EventProcessorOptions processorOptions
)
where T : IEventProcessor
public:
generic<typename T>
where T : IEventProcessor
Task^ RegisterEventProcessorAsync(
    EventProcessorOptions^ processorOptions
)
member RegisterEventProcessorAsync<'T when 'T : IEventProcessor> : 
        processorOptions:EventProcessorOptions -> Task
Public Function RegisterEventProcessorAsync(Of T As IEventProcessor) (
    processorOptions As EventProcessorOptions
) As Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

A task indicating that the EventProcessorHost instance has started.

Type Parameters

See Also

RegisterEventProcessorAsync Overload
EventProcessorHost Class
Microsoft.ServiceBus.Messaging Namespace

Return to top