Partager via


IEventProcessor.CloseAsync(PartitionContext, CloseReason) Méthode

Définition

Appelé par l’hôte du processeur pour indiquer que le processeur d’événements est en cours d’arrêt.

public System.Threading.Tasks.Task CloseAsync (Microsoft.Azure.EventHubs.Processor.PartitionContext context, Microsoft.Azure.EventHubs.Processor.CloseReason reason);
abstract member CloseAsync : Microsoft.Azure.EventHubs.Processor.PartitionContext * Microsoft.Azure.EventHubs.Processor.CloseReason -> System.Threading.Tasks.Task
Public Function CloseAsync (context As PartitionContext, reason As CloseReason) As Task

Paramètres

context
PartitionContext

Informations sur la partition.

reason
CloseReason

Raison pour laquelle le processeur d’événements est arrêté.

Retours

S’applique à