你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventGridPublisherClientExtensions.SendCloudNativeCloudEventsAsync Method

Definition

Publishes a set of CloudEvents to an Event Grid topic.

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)

Parameters

client
EventGridPublisherClient

The EventGridPublisherClient instance to extend.

cloudEvents
IEnumerable<CloudNative.CloudEvents.CloudEvent>

The set of events to be published to Event Grid.

cancellationToken
CancellationToken

An optional cancellation token instance to signal the request to cancel the operation.

Returns

Applies to