Encapsulates information related to an Event Hubs partition used by IEventProcessor.
public class PartitionContext
type PartitionContext = class
Public Class PartitionContext
This is mainly created for unit testing IEventProcessor logic so various mocking frameworks can be used to pass in a mock for PartitionContext.
Gets or sets the name of the consumer group.
Gets or sets the path of the event hub.
Gets or sets the messaging lease.
Gets the approximate receiver runtime information for a logical partition of an Event Hub. To enable the setting, refer to EnableReceiverRuntimeMetric
Checkpoints progress of an Event Hubs message stream. Make sure to call this method once all the messages in a batch are processed.
Checkpoints progress of an Event Hubs message stream with the specified offset.