Share via


EventProcessorHost.RegisterEventProcessorAsync<T> Method ()

 

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>()
where T : IEventProcessor
public:
generic<typename T>
where T : IEventProcessor
Task^ RegisterEventProcessorAsync()
member RegisterEventProcessorAsync<'T when 'T : IEventProcessor> : unit -> Task
Public Function RegisterEventProcessorAsync(Of T As IEventProcessor) As Task

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