Freigeben über


IEventProcessor.CloseAsync(PartitionContext, CloseReason) Methode

Definition

Wird vom Prozessorhost aufgerufen, um anzugeben, dass der Ereignisprozessor beendet wird.

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

Parameter

context
PartitionContext

Informationen zur Partition.

reason
CloseReason

Grund, warum der Ereignisprozessor beendet wird.

Gibt zurück

Gilt für: