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

SignalRTriggerAttribute 类

定义

用于标记应由 SignalR 客户端发送的消息触发的函数的属性。

[Microsoft.Azure.WebJobs.Description.Binding]
[System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.ReturnValue)]
public class SignalRTriggerAttribute : Attribute
[<Microsoft.Azure.WebJobs.Description.Binding>]
[<System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.ReturnValue)>]
type SignalRTriggerAttribute = class
    inherit Attribute
Public Class SignalRTriggerAttribute
Inherits Attribute
继承
SignalRTriggerAttribute
属性
Microsoft.Azure.WebJobs.Description.BindingAttribute AttributeUsageAttribute

构造函数

SignalRTriggerAttribute()

初始化 SignalRTriggerAttribute 类的新实例。

SignalRTriggerAttribute(String, String, String)

初始化 SignalRTriggerAttribute 类的新实例。

SignalRTriggerAttribute(String, String, String, String[])

初始化 SignalRTriggerAttribute 类的新实例。

属性

Category

两个可选值:连接和消息

ConnectionStringSetting

连接到 Azure SignalR 服务 的连接字符串

Event

请求的 事件。

HubName

请求中心所属。

ParameterNames

用于消息类别。 中 ParameterNames 定义的所有名称都将按顺序映射到 InvocationMessage 中的 Arguments。 该名称可以直接在方法的参数中使用。

适用于