Interface IEventProcessorFactory
- Namespace
- Microsoft.ServiceBus.Messaging
- Assembly
- Microsoft.ServiceBus.dll
An interface that provides a factory for creating instances of IEventProcessor.
public interface IEventProcessorFactory
Remarks
Use a factory if you need a more advance way to create IEventProcessor. Otherwise you can use EventHubConsumerGroup.RegisterProcessor to specify just the event processor type.
Methods
CreateEventProcessor(PartitionContext)
Creates a new instance of an event processor in the specified partition.
IEventProcessor CreateEventProcessor(PartitionContext context)
Parameters
context
PartitionContextPartition context information.
Returns
- IEventProcessor
An instance of IEventProcessorFactory.