Share via


PartitionInitializingEventArgs Constructor

Definition

Initializes a new instance of the PartitionInitializingEventArgs class.

public PartitionInitializingEventArgs (string partitionId, Azure.Messaging.EventHubs.Consumer.EventPosition defaultStartingPosition, System.Threading.CancellationToken cancellationToken = default);
new Azure.Messaging.EventHubs.Processor.PartitionInitializingEventArgs : string * Azure.Messaging.EventHubs.Consumer.EventPosition * System.Threading.CancellationToken -> Azure.Messaging.EventHubs.Processor.PartitionInitializingEventArgs
Public Sub New (partitionId As String, defaultStartingPosition As EventPosition, Optional cancellationToken As CancellationToken = Nothing)

Parameters

partitionId
String

The identifier of the partition whose processing is starting.

defaultStartingPosition
EventPosition

The position within a partition where the associated EventProcessorClient should begin reading events when no checkpoint can be found.

cancellationToken
CancellationToken

A CancellationToken instance to signal the request to cancel the operation.

Applies to