HubOptionsSetup<THub>(IOptions<HubOptions>) 构造函数

定义

构造选项配置类。

public:
 HubOptionsSetup(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::SignalR::HubOptions ^> ^ options);
public HubOptionsSetup (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions> options);
new Microsoft.AspNetCore.SignalR.HubOptionsSetup<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)> : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions> -> Microsoft.AspNetCore.SignalR.HubOptionsSetup<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)>
Public Sub New (options As IOptions(Of HubOptions))

参数

options
IOptions<HubOptions>

依赖项注入中的全局 HubOptions

适用于