RedisHubLifetimeManager<THub> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RedisHubLifetimeManager<THub>(ILogger<RedisHubLifetimeManager<THub>>, IOptions<RedisOptions>, IHubProtocolResolver)
- Source:
- RedisHubLifetimeManager.cs
- Source:
- RedisHubLifetimeManager.cs
- Source:
- RedisHubLifetimeManager.cs
- Source:
- RedisHubLifetimeManager.cs
- Source:
- RedisHubLifetimeManager.cs
- Source:
- RedisHubLifetimeManager.cs
- Source:
- RedisHubLifetimeManager.cs
- Source:
- RedisHubLifetimeManager.cs
RedisHubLifetimeManager<THub>使用依赖项注入中的类型构造 。
public:
RedisHubLifetimeManager(Microsoft::Extensions::Logging::ILogger<Microsoft::AspNetCore::SignalR::StackExchangeRedis::RedisHubLifetimeManager<THub> ^> ^ logger, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::SignalR::StackExchangeRedis::RedisOptions ^> ^ options, Microsoft::AspNetCore::SignalR::IHubProtocolResolver ^ hubProtocolResolver);
public RedisHubLifetimeManager (Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisHubLifetimeManager<THub>> logger, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisOptions> options, Microsoft.AspNetCore.SignalR.IHubProtocolResolver hubProtocolResolver);
new Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisHubLifetimeManager<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)> : Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisHubLifetimeManager<'Hub>> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisOptions> * Microsoft.AspNetCore.SignalR.IHubProtocolResolver -> Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisHubLifetimeManager<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)>
Public Sub New (logger As ILogger(Of RedisHubLifetimeManager(Of THub)), options As IOptions(Of RedisOptions), hubProtocolResolver As IHubProtocolResolver)
参数
- logger
- ILogger<RedisHubLifetimeManager<THub>>
记录器,用于写入有关类正在执行的操作的信息。
- options
- IOptions<RedisOptions>
影响 RedisOptions Redis 连接行为的 。
- hubProtocolResolver
- IHubProtocolResolver
在 IHubProtocolResolver 写入连接时获取 IHubProtocol 实例的 。
适用于
RedisHubLifetimeManager<THub>(ILogger<RedisHubLifetimeManager<THub>>, IOptions<RedisOptions>, IHubProtocolResolver, IOptions<HubOptions>, IOptions<HubOptions<THub>>)
- Source:
- RedisHubLifetimeManager.cs
- Source:
- RedisHubLifetimeManager.cs
- Source:
- RedisHubLifetimeManager.cs
- Source:
- RedisHubLifetimeManager.cs
- Source:
- RedisHubLifetimeManager.cs
- Source:
- RedisHubLifetimeManager.cs
RedisHubLifetimeManager<THub>使用依赖项注入中的类型构造 。
public RedisHubLifetimeManager (Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisHubLifetimeManager<THub>> logger, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisOptions> options, Microsoft.AspNetCore.SignalR.IHubProtocolResolver hubProtocolResolver, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions> globalHubOptions, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions<THub>> hubOptions);
public RedisHubLifetimeManager (Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisHubLifetimeManager<THub>> logger, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisOptions> options, Microsoft.AspNetCore.SignalR.IHubProtocolResolver hubProtocolResolver, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions>? globalHubOptions, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions<THub>>? hubOptions);
new Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisHubLifetimeManager<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)> : Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisHubLifetimeManager<'Hub>> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisOptions> * Microsoft.AspNetCore.SignalR.IHubProtocolResolver * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions<'Hub>> -> Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisHubLifetimeManager<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)>
Public Sub New (logger As ILogger(Of RedisHubLifetimeManager(Of THub)), options As IOptions(Of RedisOptions), hubProtocolResolver As IHubProtocolResolver, globalHubOptions As IOptions(Of HubOptions), hubOptions As IOptions(Of HubOptions(Of THub)))
参数
- logger
- ILogger<RedisHubLifetimeManager<THub>>
记录器,用于写入有关类正在执行的操作的信息。
- options
- IOptions<RedisOptions>
影响 RedisOptions Redis 连接行为的 。
- hubProtocolResolver
- IHubProtocolResolver
在 IHubProtocolResolver 写入连接时获取 IHubProtocol 实例的 。
- globalHubOptions
- IOptions<HubOptions>
全局 HubOptions。
- hubOptions
- IOptions<HubOptions<THub>>
特定 THub
选项。