你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SignalRTriggerAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于标记应由 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
构造函数
属性
Category |
两个可选值:连接和消息 |
ConnectionStringSetting |
连接到 Azure SignalR 服务 的连接字符串 |
Event |
请求的 事件。 |
HubName |
请求中心所属。 |
ParameterNames |
用于消息类别。 中 ParameterNames 定义的所有名称都将按顺序映射到 InvocationMessage 中的 Arguments。 该名称可以直接在方法的参数中使用。 |