KestrelServer 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
KestrelServer(IOptions<KestrelServerOptions>, IConnectionListenerFactory, ILoggerFactory) |
初始化 KestrelServer 的新实例。 |
KestrelServer(IOptions<KestrelServerOptions>, ITransportFactory, ILoggerFactory) |
KestrelServer(IOptions<KestrelServerOptions>, IConnectionListenerFactory, ILoggerFactory)
- Source:
- KestrelServer.cs
初始化 KestrelServer 的新实例。
public:
KestrelServer(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Server::Kestrel::Core::KestrelServerOptions ^> ^ options, Microsoft::AspNetCore::Connections::IConnectionListenerFactory ^ transportFactory, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public KestrelServer (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> options, Microsoft.AspNetCore.Connections.IConnectionListenerFactory transportFactory, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> * Microsoft.AspNetCore.Connections.IConnectionListenerFactory * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer
Public Sub New (options As IOptions(Of KestrelServerOptions), transportFactory As IConnectionListenerFactory, loggerFactory As ILoggerFactory)
参数
- options
- IOptions<KestrelServerOptions>
Kestrel IOptions<TOptions>。
- transportFactory
- IConnectionListenerFactory
- loggerFactory
- ILoggerFactory
适用于
KestrelServer(IOptions<KestrelServerOptions>, ITransportFactory, ILoggerFactory)
- Source:
- KestrelServer.cs
- Source:
- KestrelServer.cs
public:
KestrelServer(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Server::Kestrel::Core::KestrelServerOptions ^> ^ options, Microsoft::AspNetCore::Server::Kestrel::Transport::Abstractions::Internal::ITransportFactory ^ transportFactory, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public KestrelServer (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> options, Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.ITransportFactory transportFactory, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> * Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.ITransportFactory * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer
Public Sub New (options As IOptions(Of KestrelServerOptions), transportFactory As ITransportFactory, loggerFactory As ILoggerFactory)
参数
- options
- IOptions<KestrelServerOptions>
- transportFactory
- Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.ITransportFactory
- loggerFactory
- ILoggerFactory