你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
EventGridPublisherClientExtensions.SendCloudNativeCloudEvents 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将一组 CloudEvent 发布到事件网格主题。
public static Azure.Response SendCloudNativeCloudEvents(this Azure.Messaging.EventGrid.EventGridPublisherClient client, System.Collections.Generic.IEnumerable<CloudNative.CloudEvents.CloudEvent> cloudEvents, System.Threading.CancellationToken cancellationToken = default);
static member SendCloudNativeCloudEvents : Azure.Messaging.EventGrid.EventGridPublisherClient * seq<CloudNative.CloudEvents.CloudEvent> * System.Threading.CancellationToken -> Azure.Response
<Extension()>
Public Function SendCloudNativeCloudEvents (client As EventGridPublisherClient, cloudEvents As IEnumerable(Of CloudEvent), Optional cancellationToken As CancellationToken = Nothing) As Response
参数
- client
- EventGridPublisherClient
要 EventGridPublisherClient 扩展的实例。
- cloudEvents
- IEnumerable<CloudNative.CloudEvents.CloudEvent>
要发布到事件网格的事件集。
- cancellationToken
- CancellationToken
一个可选的取消令牌实例,用于向取消操作的请求发出信号。