Share via


IEventProcessor.CloseAsync(PartitionContext, CloseReason) Method

Definition

Called by processor host to indicate that the event processor is being stopped.

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

Parameters

context
PartitionContext

Information about the partition.

reason
CloseReason

Reason why the event processor is being stopped.

Returns

Applies to