你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
EventGridPublisherClient.SendEventAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SendEventAsync(CloudEvent, String, CancellationToken) |
将 CloudEvent 发布到事件网格主题。 |
SendEventAsync(BinaryData, CancellationToken) |
将一组自定义架构事件发布到事件网格主题。 |
SendEventAsync(CloudEvent, CancellationToken) |
将 CloudEvent 发布到事件网格主题。 |
SendEventAsync(EventGridEvent, CancellationToken) |
将一组 EventGridEvent 发布到事件网格主题。 |
SendEventAsync(CloudEvent, String, CancellationToken)
- Source:
- EventGridPublisherClient.cs
- Source:
- EventGridPublisherClient.cs
将 CloudEvent 发布到事件网格主题。
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)
参数
- cloudEvent
- CloudEvent
要发布到事件网格的事件集。
- channelName
- String
将事件发布到的合作伙伴主题通道。
- cancellationToken
- CancellationToken
一个可选的取消令牌实例,用于向取消操作的请求发出信号。
返回
适用于
SendEventAsync(BinaryData, CancellationToken)
- Source:
- EventGridPublisherClient.cs
- Source:
- EventGridPublisherClient.cs
将一组自定义架构事件发布到事件网格主题。
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)
参数
- customEvent
- BinaryData
要发布到事件网格的自定义架构事件。
- cancellationToken
- CancellationToken
一个可选的取消令牌实例,用于向取消操作的请求发出信号。
返回
适用于
SendEventAsync(CloudEvent, CancellationToken)
- Source:
- EventGridPublisherClient.cs
- Source:
- EventGridPublisherClient.cs
将 CloudEvent 发布到事件网格主题。
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)
参数
- cloudEvent
- CloudEvent
要发布到事件网格的事件集。
- cancellationToken
- CancellationToken
一个可选的取消令牌实例,用于向取消操作的请求发出信号。
返回
适用于
SendEventAsync(EventGridEvent, CancellationToken)
- Source:
- EventGridPublisherClient.cs
- Source:
- EventGridPublisherClient.cs
将一组 EventGridEvent 发布到事件网格主题。
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)
参数
- eventGridEvent
- EventGridEvent
要发布到事件网格的事件。
- cancellationToken
- CancellationToken
一个可选的取消令牌实例,用于向取消操作的请求发出信号。