Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Remove non-essential platform services
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
davidfowl committed Dec 8, 2015
1 parent 3f9c23a commit 29a4f30
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/Microsoft.AspNet.Hosting/WebHostBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,6 @@ private IServiceCollection BuildHostingServices()
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;
}

Expand Down

0 comments on commit 29a4f30

Please sign in to comment.