PartitionContext Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encapsulates information related to an Event Hubs partition used by IEventProcessor.
public class PartitionContext
type PartitionContext = class
Public Class PartitionContext
- Inheritance
-
PartitionContext
Partition |
This is mainly created for unit testing IEventProcessor logic so various mocking frameworks can be used to pass in a mock for PartitionContext. |
Consumer |
Gets or sets the name of the consumer group. |
Event |
Gets or sets the path of the event hub. |
Lease |
Gets or sets the messaging lease. |
Runtime |
Gets the approximate receiver runtime information for a logical partition of an Event Hub. To enable the setting, refer to EnableReceiverRuntimeMetric |
Checkpoint |
Checkpoints progress of an Event Hubs message stream. Make sure to call this method once all the messages in a batch are processed. |
Checkpoint |
Checkpoints progress of an Event Hubs message stream with the specified offset. |
Azure SDK for .NET feedback
Azure SDK for .NET is an open source project. Select a link to provide feedback: