EventGridPublisherClient.SendEventsAsync Method

Definition

Overloads

SendEventsAsync(IEnumerable<BinaryData>, CancellationToken)

Publishes a set of custom schema events to an Event Grid topic.

SendEventsAsync(IEnumerable<CloudEvent>, CancellationToken)

Publishes a set of CloudEvents to an Event Grid topic.

SendEventsAsync(IEnumerable<EventGridEvent>, CancellationToken)

Publishes a set of EventGridEvents to an Event Grid topic.

SendEventsAsync(IEnumerable<CloudEvent>, String, CancellationToken)

Publishes a set of CloudEvents to an Event Grid topic.

SendEventsAsync(IEnumerable<BinaryData>, CancellationToken)

Source:
EventGridPublisherClient.cs
Source:
EventGridPublisherClient.cs

Publishes a set of custom schema events to an Event Grid topic.

public virtual System.Threading.Tasks.Task<Azure.Response> SendEventsAsync (System.Collections.Generic.IEnumerable<BinaryData> customEvents, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEventsAsync : seq<BinaryData> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.SendEventsAsync : seq<BinaryData> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SendEventsAsync (customEvents As IEnumerable(Of BinaryData), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

customEvents
IEnumerable<BinaryData>

The set of custom schema 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

SendEventsAsync(IEnumerable<CloudEvent>, CancellationToken)

Source:
EventGridPublisherClient.cs
Source:
EventGridPublisherClient.cs

Publishes a set of CloudEvents to an Event Grid topic.

public virtual System.Threading.Tasks.Task<Azure.Response> SendEventsAsync (System.Collections.Generic.IEnumerable<Azure.Messaging.CloudEvent> cloudEvents, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEventsAsync : seq<Azure.Messaging.CloudEvent> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.SendEventsAsync : seq<Azure.Messaging.CloudEvent> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SendEventsAsync (cloudEvents As IEnumerable(Of CloudEvent), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

cloudEvents
IEnumerable<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

SendEventsAsync(IEnumerable<EventGridEvent>, CancellationToken)

Source:
EventGridPublisherClient.cs
Source:
EventGridPublisherClient.cs

Publishes a set of EventGridEvents to an Event Grid topic.

public virtual System.Threading.Tasks.Task<Azure.Response> SendEventsAsync (System.Collections.Generic.IEnumerable<Azure.Messaging.EventGrid.EventGridEvent> eventGridEvents, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEventsAsync : seq<Azure.Messaging.EventGrid.EventGridEvent> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.SendEventsAsync : seq<Azure.Messaging.EventGrid.EventGridEvent> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SendEventsAsync (eventGridEvents As IEnumerable(Of EventGridEvent), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

eventGridEvents
IEnumerable<EventGridEvent>

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

SendEventsAsync(IEnumerable<CloudEvent>, String, CancellationToken)

Source:
EventGridPublisherClient.cs
Source:
EventGridPublisherClient.cs

Publishes a set of CloudEvents to an Event Grid topic.

public virtual System.Threading.Tasks.Task<Azure.Response> SendEventsAsync (System.Collections.Generic.IEnumerable<Azure.Messaging.CloudEvent> cloudEvents, string channelName, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEventsAsync : seq<Azure.Messaging.CloudEvent> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.SendEventsAsync : seq<Azure.Messaging.CloudEvent> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SendEventsAsync (cloudEvents As IEnumerable(Of CloudEvent), channelName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

cloudEvents
IEnumerable<CloudEvent>

The set of events to be published to Event Grid.

channelName
String

The partner topic channel to publish the event to.

cancellationToken
CancellationToken

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

Returns

Applies to