DefaultHubLifetimeManager<THub> 构造函数

定义

初始化 DefaultHubLifetimeManager<THub> 类的新实例。

public:
 DefaultHubLifetimeManager(Microsoft::Extensions::Logging::ILogger<Microsoft::AspNetCore::SignalR::DefaultHubLifetimeManager<THub> ^> ^ logger);
public DefaultHubLifetimeManager (Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.SignalR.DefaultHubLifetimeManager<THub>> logger);
new Microsoft.AspNetCore.SignalR.DefaultHubLifetimeManager<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)> : Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.SignalR.DefaultHubLifetimeManager<'Hub>> -> Microsoft.AspNetCore.SignalR.DefaultHubLifetimeManager<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)>
Public Sub New (logger As ILogger(Of DefaultHubLifetimeManager(Of THub)))

参数

logger
ILogger<DefaultHubLifetimeManager<THub>>

记录器。

适用于