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:
parent
3f9c23a6ee
commit
29a4f302d8
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue