Compartilhar via


EventGridPublisherClientExtensions.SendCloudNativeCloudEventAsync 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> SendCloudNativeCloudEventAsync (this Azure.Messaging.EventGrid.EventGridPublisherClient client, CloudNative.CloudEvents.CloudEvent cloudEvent, System.Threading.CancellationToken cancellationToken = default);
static member SendCloudNativeCloudEventAsync : Azure.Messaging.EventGrid.EventGridPublisherClient * CloudNative.CloudEvents.CloudEvent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
<Extension()>
Public Function SendCloudNativeCloudEventAsync (client As EventGridPublisherClient, cloudEvent As CloudEvent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parâmetros

client
EventGridPublisherClient

A EventGridPublisherClient instância a ser estendida.

cloudEvent
CloudNative.CloudEvents.CloudEvent

O evento a ser publicado 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