Class PartitionContext
- Namespace
- Microsoft.ServiceBus.Messaging
- Assembly
- Microsoft.ServiceBus.dll
Encapsulates information related to an Event Hubs partition used by IEventProcessor.
public class PartitionContext
- Inheritance
-
PartitionContext
- Inherited Members
Constructors
PartitionContext()
public PartitionContext()
Properties
ConsumerGroupName
Gets or sets the name of the consumer group.
public string ConsumerGroupName { get; set; }
Property Value
- string
The name of the consumer group.
EventHubPath
Gets or sets the path of the event hub.
public string EventHubPath { get; set; }
Property Value
- string
The path of the event hub.
Lease
Gets or sets the messaging lease.
public Lease Lease { get; set; }
Property Value
- Lease
The messaging lease.
Methods
CheckpointAsync()
Checkpoints progress of an Event Hubs message stream. Make sure to call this method once all the messages in a batch are processed.
public Task CheckpointAsync()
Returns
- Task
The task representing the asynchronous operation.
CheckpointAsync(EventData)
Checkpoints progress of an Event Hubs message stream with the specified offset.
public Task CheckpointAsync(EventData data)