Sdílet prostřednictvím


EventGridPublisherClientExtensions.SendCloudNativeCloudEvent Method

Definition

Publishes a set of CloudEvents to an Event Grid topic.

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

Parameters

client
EventGridPublisherClient

The EventGridPublisherClient instance to extend.

cloudEvent
CloudNative.CloudEvents.CloudEvent

The event to be published to Event Grid.

cancellationToken
CancellationToken

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

Returns

Applies to