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)

public void RegisterProcessor<T>(
	Lease lease,
	ICheckpointManager checkpointManager
where T : IEventProcessor

Type Parameters


Implementation of IEventProcessor.


Type: Microsoft.ServiceBus.Messaging.Lease
Partition information.
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

© 2015 Microsoft