SALES: 1-800-867-1380

EventHubConsumerGroup.RegisterProcessor(T) Method (Lease, ICheckpointManager)

Registers an implementation of IEventProcessor in order to start consuming events from Event Hubs for the specified PartitionId starting from Offset. Use this overload to create an event processor that checkpoints the message offset using a custom implementation of ICheckpointManager.

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

member RegisterProcessor : 
        lease:Lease * 
        checkpointManager:ICheckpointManager -> unit  when 'T : IEventProcessor

Type Parameters

T

Implementation of IEventProcessor.

Parameters

lease
Type: Microsoft.ServiceBus.Messaging.Lease
Partition information.
checkpointManager
Type: Microsoft.ServiceBus.Messaging.ICheckpointManager
Checkpoints the offset for the specified partition when CheckpointAsync is called.

To create IEventProcessor objects with more advanced options, implement an IEventProcessorFactory class that enables you to control how event processors are created.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft