Removed AddLogging since it comes from Logging now

This commit is contained in:
David Fowler 2015-03-05 02:20:20 -08:00
parent a6ced0c60c
commit d0980738e3
1 changed files with 0 additions and 9 deletions

View File

@ -6,20 +6,11 @@ using Microsoft.AspNet.Hosting.Builder;
using Microsoft.AspNet.Hosting.Server;
using Microsoft.AspNet.Hosting.Startup;
using Microsoft.Framework.ConfigurationModel;
using Microsoft.Framework.Logging;
namespace Microsoft.Framework.DependencyInjection
{
public static class HostingServicesExtensions
{
// REVIEW: Logging doesn't depend on DI, where should this live?
public static IServiceCollection AddLogging(this IServiceCollection services)
{
services.TryAdd(ServiceDescriptor.Singleton<ILoggerFactory, LoggerFactory>());
services.TryAdd(ServiceDescriptor.Singleton(typeof(ILogger<>), typeof(Logger<>)));
return services;
}
public static IServiceCollection AddHosting(this IServiceCollection services, IConfiguration configuration = null)
{
services.TryAdd(ServiceDescriptor.Transient<IHostingEngine, HostingEngine>());