Remove non-essential platform services

- Remove services that can be registered by the application itself.
- These services use to come from the DNX but now they are stand alone
implementations that can be registered by applications if they choose.

#501
This commit is contained in:
David Fowler 2015-12-06 01:51:38 -08:00
parent 3f9c23a6ee
commit 29a4f302d8
1 changed files with 0 additions and 15 deletions

View File

@ -98,21 +98,6 @@ namespace Microsoft.AspNet.Hosting
services.TryAdd(ServiceDescriptor.Instance(PlatformServices.Default.Runtime));
}
if (PlatformServices.Default?.AssemblyLoadContextAccessor != null)
{
services.TryAdd(ServiceDescriptor.Instance(PlatformServices.Default.AssemblyLoadContextAccessor));
}
if (PlatformServices.Default?.AssemblyLoaderContainer != null)
{
services.TryAdd(ServiceDescriptor.Instance(PlatformServices.Default.AssemblyLoaderContainer));
}
if (PlatformServices.Default?.LibraryManager != null)
{
services.TryAdd(ServiceDescriptor.Instance(PlatformServices.Default.LibraryManager));
}
return services;
}