Share via


PartitionClosingEventArgs Class

Definition

Contains information about the partition whose processing is being stopped.

public class PartitionClosingEventArgs
type PartitionClosingEventArgs = class
Public Class PartitionClosingEventArgs
Inheritance
PartitionClosingEventArgs

Constructors

PartitionClosingEventArgs(String, ProcessingStoppedReason, CancellationToken)

Initializes a new instance of the PartitionClosingEventArgs class.

Properties

CancellationToken

A CancellationToken to indicate that the processor is requesting that the handler stop its activities. If this token is requesting cancellation, then the processor is attempting to shutdown.

PartitionId

The identifier of the Event Hub partition this instance is associated with.

Reason

The reason why the processing for the associated partition is being stopped.

Applies to