你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventGridPublisherClient.SendEventsAsync 方法

定义

重载

SendEventsAsync(IEnumerable<BinaryData>, CancellationToken)

将一组自定义架构事件发布到事件网格主题。

SendEventsAsync(IEnumerable<CloudEvent>, CancellationToken)

将一组 CloudEvent 发布到事件网格主题。

SendEventsAsync(IEnumerable<EventGridEvent>, CancellationToken)

将一组 EventGridEvent 发布到事件网格主题。

SendEventsAsync(IEnumerable<CloudEvent>, String, CancellationToken)

将一组 CloudEvent 发布到事件网格主题。

SendEventsAsync(IEnumerable<BinaryData>, CancellationToken)

Source:
EventGridPublisherClient.cs
Source:
EventGridPublisherClient.cs

将一组自定义架构事件发布到事件网格主题。

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)

参数

customEvents
IEnumerable<BinaryData>

要发布到事件网格的自定义架构事件集。

cancellationToken
CancellationToken

一个可选的取消令牌实例,用于向取消操作的请求发出信号。

返回

适用于

SendEventsAsync(IEnumerable<CloudEvent>, CancellationToken)

Source:
EventGridPublisherClient.cs
Source:
EventGridPublisherClient.cs

将一组 CloudEvent 发布到事件网格主题。

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)

参数

cloudEvents
IEnumerable<CloudEvent>

要发布到事件网格的事件集。

cancellationToken
CancellationToken

一个可选的取消令牌实例,用于向取消操作的请求发出信号。

返回

适用于

SendEventsAsync(IEnumerable<EventGridEvent>, CancellationToken)

Source:
EventGridPublisherClient.cs
Source:
EventGridPublisherClient.cs

将一组 EventGridEvent 发布到事件网格主题。

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)

参数

eventGridEvents
IEnumerable<EventGridEvent>

要发布到事件网格的事件集。

cancellationToken
CancellationToken

一个可选的取消令牌实例,用于向取消操作的请求发出信号。

返回

适用于

SendEventsAsync(IEnumerable<CloudEvent>, String, CancellationToken)

Source:
EventGridPublisherClient.cs
Source:
EventGridPublisherClient.cs

将一组 CloudEvent 发布到事件网格主题。

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)

参数

cloudEvents
IEnumerable<CloudEvent>

要发布到事件网格的事件集。

channelName
String

将事件发布到的合作伙伴主题通道。

cancellationToken
CancellationToken

一个可选的取消令牌实例,用于向取消操作的请求发出信号。

返回

适用于