Partager via


EventHubBufferedProducerClient.OnSendFailedAsync Méthode

Définition

Responsable du déclenchement de l’événement SendEventBatchFailedAsync en cas d’échec de publication d’un lot d’événements, une fois que toutes les nouvelles tentatives éligibles sont épuisées.

protected virtual System.Threading.Tasks.Task OnSendFailedAsync (System.Collections.Generic.IReadOnlyList<Azure.Messaging.EventHubs.EventData> events, Exception exception, string partitionId, System.Threading.CancellationToken cancellationToken = default);
abstract member OnSendFailedAsync : System.Collections.Generic.IReadOnlyList<Azure.Messaging.EventHubs.EventData> * Exception * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnSendFailedAsync : System.Collections.Generic.IReadOnlyList<Azure.Messaging.EventHubs.EventData> * Exception * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnSendFailedAsync (events As IReadOnlyList(Of EventData), exception As Exception, partitionId As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Paramètres

events
IReadOnlyList<EventData>

Ensemble d’événements appartenant au lot qui n’a pas pu être publié.

exception
Exception

Exception qui a été déclenché lorsque les événements n’ont pas pu être publiés.

partitionId
String

Identificateur de la partition sur laquelle le lot d’événements a été publié.

cancellationToken
CancellationToken

Une CancellationToken instance pour signaler la demande d’annulation de la publication.

Retours

S’applique à