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
processorOptions
Type: Microsoft.ServiceBus.Messaging.EventProcessorOptionsAn EventProcessorOptions object that controls various aspects of the event pump created when ownership is acquired for a given Event Hubs partition.
Return Value
Type: System.Threading.Tasks.Task
A task indicating that the EventProcessorHost instance has started.
Type Parameters
- T
Implementation of your application-specific IEventProcessor.
See Also
RegisterEventProcessorAsync Overload
EventProcessorHost Class
Microsoft.ServiceBus.Messaging Namespace
Return to top