EventGridPublisherClient.SendEvents Method

Definition

Overloads

SendEvents(IEnumerable<CloudEvent>, CancellationToken)

Publishes a set of CloudEvents to an Event Grid topic.

SendEvents(IEnumerable<EventGridEvent>, CancellationToken)

Publishes a set of EventGridEvents to an Event Grid topic.

SendEvents(IEnumerable<BinaryData>, CancellationToken)

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

SendEvents(IEnumerable<CloudEvent>, String, CancellationToken)

Publishes a set of CloudEvents to an Event Grid topic.

SendEvents(IEnumerable<CloudEvent>, CancellationToken)

Publishes a set of CloudEvents to an Event Grid topic.

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

Response

Applies to

SendEvents(IEnumerable<EventGridEvent>, CancellationToken)

Publishes a set of EventGridEvents to an Event Grid topic.

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

Response

Applies to

SendEvents(IEnumerable<BinaryData>, CancellationToken)

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

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

Response

Applies to

SendEvents(IEnumerable<CloudEvent>, String, CancellationToken)

Publishes a set of CloudEvents to an Event Grid topic.

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

Response

Applies to