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

Microsoft.Azure.WebJobs.Extensions.SignalRService 命名空间

InvocationContext

对象表示无服务器消息调用的上下文。

InvocationContextExtensions

类包含 的 InvocationContext扩展方法。

NegotiationBaseAttribute

用于 SignalR 客户端协商的输入绑定属性的基类。

SecurityTokenResult

定义安全令牌验证的结果。

SecurityTokenValidationAttribute
ServerlessHub

当派生自 ServerlessHub的类时,类中的所有方法都标识为使用基于类的模型。 HubName 是从类名解析的。 事件 从方法名称解析。 类别 由方法名称确定。 只有 OnConnectedOnDisconnected 将被视为“连接”,其他将被视为“消息”。 ParameterNames 将由方法的所有参数按顺序自动解析,属于绑定参数的参数除外,或者类型为 ILoggerCancellationToken,或者由 SignalRIgnoreAttribute标记。 请注意, SignalRTriggerAttribute 必须在基于类的模型中使用无参数构造函数。

ServerlessHub.SignalRConnectionAttribute

要传递到无服务器中心上下文的自定义设置。

ServerlessHub<T>
SignalRAsyncCollector<T>

用于发送 SignalR 消息或组操作的 SignalR 异步收集器。

SignalRAttribute

用于指定属性目标的属性应将其数据输出到SignalR 服务。

SignalRConnectionAttribute

适用于 ServerlessHub<T> 以自定义 Azure SignalR 连接名称。

SignalRConnectionDetail

包含用于生成 SignalR 访问令牌的 SignalR 连接信息的详细信息。

SignalRConnectionInfo

POJO 类包含 SignalR 客户端连接到Azure SignalR 服务所需的信息。

SignalRConnectionInfoAttribute

用于绑定 SignalR 客户端连接到SignalR 服务所需的信息的属性。

SignalREndpointsAttribute

用于将SignalR 服务终结点列表绑定到 参数的属性。

SignalRFilterAttribute
SignalRFunctionsHostBuilderExtensions

用于添加安全令牌验证器和 SignalR 连接配置的扩展

SignalRGroupAction

包含组操作所需的参数的类。 支持对 connectionId 或 userId 执行组操作。 如果 connectionId 和 userId 均已设置,则将按以下顺序对其进行解析:1.ConnectionId 2。UserId

SignalRIgnoreAttribute

在基于类的模型中,将参数显式标记为不为 SignalR 参数。 这意味着它不会绑定到 InvocationMessage 参数。

SignalRMessage

包含发送消息所需的参数的类。 有三种类型的范围要发送,如果设置了多个范围,将按以下顺序解析它:1.ConnectionId 2。UserId 3。GroupName

SignalRNegotiationAttribute

要绑定到 Microsoft.Azure.WebJobs.Extensions.SignalRService.NegotiationContext 函数参数的输入绑定属性。

SignalROptions

SignalR 扩展的配置选项。

SignalROutputConverter

用于将 JObject 转换为 SignalRMessageSignalRGroupAction的帮助程序类。

SignalRParameterAttribute

将参数标记为需要绑定参数的 SignalR 参数。 它与 ParameterNames互斥。 这意味着不能同时设置 ParameterNames 和使用 SignalRParameterAttribute

SignalRTriggerAttribute

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

SignalRTriggerCategories

类包含表示 SignalR 触发器类别的常量字符串。

SignalRTriggerEvents

类包含表示不同触发器事件类型的常量字符串。

SignalRTriggerException
SignalRWebJobsBuilderExtensions

用于SignalR 服务集成的扩展方法

SignalRWebJobsStartup
StaticServiceHubContextStore

扩展的全局 Microsoft.Azure.WebJobs.Extensions.SignalRService.IServiceManagerStore 。 它存储 IServiceHubContextStore 每组连接字符串。

接口

ISecurityTokenValidator

用于验证安全令牌的抽象。

IServiceHubContextStore

IServiceHubContextStoreMicrosoft.Azure.SignalR.Management.IServiceHubContext每个中心名称的存储区。

ISignalRConnectionInfoConfigurer

用于配置 SignalR 连接信息的配置抽象

枚举

GroupAction

组操作的类型。

SecurityTokenStatus