Share via


EventGridPublisherClient.SendEvent Method

Definition

Overloads

SendEvent(CloudEvent, CancellationToken)

Publishes a CloudEvent to an Event Grid topic.

SendEvent(EventGridEvent, CancellationToken)

Publishes a set of EventGridEvents to an Event Grid topic.

SendEvent(BinaryData, CancellationToken)

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

SendEvent(CloudEvent, String, CancellationToken)

Publishes a CloudEvent to an Event Grid topic.

SendEvent(CloudEvent, CancellationToken)

Source:
EventGridPublisherClient.cs
Source:
EventGridPublisherClient.cs

Publishes a CloudEvent to an Event Grid topic.

public virtual Azure.Response SendEvent (Azure.Messaging.CloudEvent cloudEvent, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEvent : Azure.Messaging.CloudEvent * System.Threading.CancellationToken -> Azure.Response
override this.SendEvent : Azure.Messaging.CloudEvent * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function SendEvent (cloudEvent As CloudEvent, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

cloudEvent
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

SendEvent(EventGridEvent, CancellationToken)

Source:
EventGridPublisherClient.cs
Source:
EventGridPublisherClient.cs

Publishes a set of EventGridEvents to an Event Grid topic.

public virtual Azure.Response SendEvent (Azure.Messaging.EventGrid.EventGridEvent eventGridEvent, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEvent : Azure.Messaging.EventGrid.EventGridEvent * System.Threading.CancellationToken -> Azure.Response
override this.SendEvent : Azure.Messaging.EventGrid.EventGridEvent * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function SendEvent (eventGridEvent As EventGridEvent, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

eventGridEvent
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

SendEvent(BinaryData, CancellationToken)

Source:
EventGridPublisherClient.cs
Source:
EventGridPublisherClient.cs

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

public virtual Azure.Response SendEvent (BinaryData customEvent, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEvent : BinaryData * System.Threading.CancellationToken -> Azure.Response
override this.SendEvent : BinaryData * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function SendEvent (customEvent As BinaryData, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

customEvent
BinaryData

A custom schema 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

SendEvent(CloudEvent, String, CancellationToken)

Source:
EventGridPublisherClient.cs
Source:
EventGridPublisherClient.cs

Publishes a CloudEvent to an Event Grid topic.

public virtual Azure.Response SendEvent (Azure.Messaging.CloudEvent cloudEvent, string channelName, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEvent : Azure.Messaging.CloudEvent * string * System.Threading.CancellationToken -> Azure.Response
override this.SendEvent : Azure.Messaging.CloudEvent * string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function SendEvent (cloudEvent As CloudEvent, channelName As String, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

cloudEvent
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