Grid Publisher Client Extensions. Send Cloud Event Async(EventGridPublisherClient, CloudEvent, CancellationToken) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Publishes a set of CloudEvents to an Event Grid topic.
public static System.Threading.Tasks.Task<Azure.Response> SendCloudEventAsync (this Azure.Messaging.EventGrid.EventGridPublisherClient client, CloudNative.CloudEvents.CloudEvent cloudEvent, System.Threading.CancellationToken cancellationToken = default);
static member SendCloudEventAsync : Azure.Messaging.EventGrid.EventGridPublisherClient * CloudNative.CloudEvents.CloudEvent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
<Extension()> Public Function SendCloudEventAsync (client As EventGridPublisherClient, cloudEvent As CloudEvent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
The event to be published to Event Grid.
An optional cancellation token instance to signal the request to cancel the operation.