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:
Louis DeJardin 2014-06-17 15:10:13 -07:00
parent 0ab560e086
commit 45933b149e
1 changed files with 0 additions and 4 deletions

View File

@ -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;