IServerFactory is never a registered service
IServerManager is registered when needed Or the caller may provide context.ServerFactory instance when an override is needed
This commit is contained in:
parent
0ab560e086
commit
45933b149e
|
|
@ -76,10 +76,6 @@ namespace Microsoft.AspNet.Hosting
|
|||
|
||||
private void EnsureServerFactory(HostingContext context)
|
||||
{
|
||||
if (context.ServerFactory == null)
|
||||
{
|
||||
context.ServerFactory = context.Services.GetServiceOrDefault<IServerFactory>();
|
||||
}
|
||||
if (context.ServerFactory != null)
|
||||
{
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue