EventGridPublisherClient.SendEventAsync Method
Definition
Important
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.
Overloads
SendEventAsync(CloudEvent, String, CancellationToken) |
Publishes a CloudEvent to an Event Grid topic. |
SendEventAsync(BinaryData, CancellationToken) |
Publishes a set of custom schema events to an Event Grid topic. |
SendEventAsync(CloudEvent, CancellationToken) |
Publishes a CloudEvent to an Event Grid topic. |
SendEventAsync(EventGridEvent, CancellationToken) |
Publishes a set of EventGridEvents to an Event Grid topic. |
SendEventAsync(CloudEvent, String, CancellationToken)
- Source:
- EventGridPublisherClient.cs
- Source:
- EventGridPublisherClient.cs
Publishes a CloudEvent to an Event Grid topic.
public virtual System.Threading.Tasks.Task<Azure.Response> SendEventAsync (Azure.Messaging.CloudEvent cloudEvent, string channelName, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEventAsync : Azure.Messaging.CloudEvent * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.SendEventAsync : Azure.Messaging.CloudEvent * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SendEventAsync (cloudEvent As CloudEvent, channelName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
SendEventAsync(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> SendEventAsync (BinaryData customEvent, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEventAsync : BinaryData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.SendEventAsync : BinaryData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SendEventAsync (customEvent As BinaryData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
SendEventAsync(CloudEvent, CancellationToken)
- Source:
- EventGridPublisherClient.cs
- Source:
- EventGridPublisherClient.cs
Publishes a CloudEvent to an Event Grid topic.
public virtual System.Threading.Tasks.Task<Azure.Response> SendEventAsync (Azure.Messaging.CloudEvent cloudEvent, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEventAsync : Azure.Messaging.CloudEvent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.SendEventAsync : Azure.Messaging.CloudEvent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SendEventAsync (cloudEvent As CloudEvent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
SendEventAsync(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> SendEventAsync (Azure.Messaging.EventGrid.EventGridEvent eventGridEvent, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEventAsync : Azure.Messaging.EventGrid.EventGridEvent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.SendEventAsync : Azure.Messaging.EventGrid.EventGridEvent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SendEventAsync (eventGridEvent As EventGridEvent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
- eventGridEvent
- EventGridEvent
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
Azure SDK for .NET