Freigeben über


EventGridPublisherClientExtensions.SendCloudNativeCloudEventsAsync Methode

Definition

Veröffentlicht eine Reihe von CloudEvents in einem Event Grid-Thema.

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)

Parameter

client
EventGridPublisherClient

Die EventGridPublisherClient zu erweiternde instance.

cloudEvents
IEnumerable<CloudNative.CloudEvents.CloudEvent>

Der Satz von Ereignissen, die in Event Grid veröffentlicht werden sollen.

cancellationToken
CancellationToken

Ein optionales Abbruchtoken instance, um der Anforderung zu signalisieren, den Vorgang abzubrechen.

Gibt zurück

Gilt für: