Partilhar via


EventGridPublisherClientExtensions.SendCloudNativeCloudEvent Método

Definição

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

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