Partilhar via


EventGridPublisherClientExtensions.SendCloudNativeCloudEventsAsync Método

Definição

Publica um conjunto de CloudEvents em um tópico da Grade de Eventos.

public static System.Threading.Tasks.Task<Azure.Response> SendCloudNativeCloudEventsAsync (this Azure.Messaging.EventGrid.EventGridPublisherClient client, System.Collections.Generic.IEnumerable<CloudNative.CloudEvents.CloudEvent> cloudEvents, System.Threading.CancellationToken cancellationToken = default);
static member SendCloudNativeCloudEventsAsync : Azure.Messaging.EventGrid.EventGridPublisherClient * seq<CloudNative.CloudEvents.CloudEvent> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
<Extension()>
Public Function SendCloudNativeCloudEventsAsync (client As EventGridPublisherClient, cloudEvents As IEnumerable(Of CloudEvent), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parâmetros

client
EventGridPublisherClient

A EventGridPublisherClient instância a ser estendida.

cloudEvents
IEnumerable<CloudNative.CloudEvents.CloudEvent>

O conjunto de eventos a serem publicados na Grade de Eventos.

cancellationToken
CancellationToken

Uma instância de token de cancelamento opcional para sinalizar a solicitação para cancelar a operação.

Retornos

Aplica-se a