EventProcessorClient.PartitionInitializingAsync Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs the tasks to initialize a partition, and its associated context, for event processing.
It is not recommended that the state of the processor be managed directly from within this method; requesting to start or stop the processor may result in a deadlock scenario, especially if using the synchronous form of the call.
public event Func<Azure.Messaging.EventHubs.Processor.PartitionInitializingEventArgs,System.Threading.Tasks.Task> PartitionInitializingAsync;
member this.PartitionInitializingAsync : Func<Azure.Messaging.EventHubs.Processor.PartitionInitializingEventArgs, System.Threading.Tasks.Task>
Public Custom Event PartitionInitializingAsync As Func(Of PartitionInitializingEventArgs, Task)
Event Type
Exceptions
If an attempt is made to remove a handler that doesn't match the current handler registered.
If an attempt is made to add a handler when one is currently registered.
Remarks
This handler will be invoked concurrently, limited to one call per partition. The processor will await each invocation before starting to process the associated partition.
The processor will wait indefinitely for execution of the handler to complete. It is recommended for implementations to avoid long-running operations, as they will delay processing for the associated partition.
Applies to
See also
Azure SDK for .NET