Pointing at updated configuration package name
This commit is contained in:
parent
590ae27208
commit
c4e98614e5
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Microsoft.AspNet.Configuration;
|
using Microsoft.AspNet.ConfigurationModel;
|
||||||
using Microsoft.AspNet.DependencyInjection;
|
using Microsoft.AspNet.DependencyInjection;
|
||||||
using Microsoft.AspNet.Hosting.Builder;
|
using Microsoft.AspNet.Hosting.Builder;
|
||||||
using Microsoft.AspNet.Hosting.Startup;
|
using Microsoft.AspNet.Hosting.Startup;
|
||||||
|
|
@ -12,7 +12,7 @@ namespace Microsoft.AspNet.Hosting
|
||||||
{
|
{
|
||||||
public static IEnumerable<IServiceDescriptor> GetDefaultServices()
|
public static IEnumerable<IServiceDescriptor> GetDefaultServices()
|
||||||
{
|
{
|
||||||
return GetDefaultServices(new EmptyConfiguration());
|
return GetDefaultServices(new Configuration());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IEnumerable<IServiceDescriptor> GetDefaultServices(IConfiguration configuration)
|
public static IEnumerable<IServiceDescriptor> GetDefaultServices(IConfiguration configuration)
|
||||||
|
|
@ -57,14 +57,6 @@ namespace Microsoft.AspNet.Hosting
|
||||||
return new ServiceTypeDescriptor(serviceType, implementationType, lifecycle);
|
return new ServiceTypeDescriptor(serviceType, implementationType, lifecycle);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class EmptyConfiguration : IConfiguration
|
|
||||||
{
|
|
||||||
public string Get(string key)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public class ServiceTypeDescriptor : IServiceDescriptor
|
public class ServiceTypeDescriptor : IServiceDescriptor
|
||||||
{
|
{
|
||||||
public ServiceTypeDescriptor(Type serviceType, Type implementationType, LifecycleKind lifecycle)
|
public ServiceTypeDescriptor(Type serviceType, Type implementationType, LifecycleKind lifecycle)
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"version": "0.1-alpha-*",
|
"version": "0.1-alpha-*",
|
||||||
"dependencies":{
|
"dependencies":{
|
||||||
"Microsoft.AspNet.DependencyInjection":"0.1-alpha-*",
|
"Microsoft.AspNet.DependencyInjection":"0.1-alpha-*",
|
||||||
"Microsoft.AspNet.Configuration":"0.1-alpha-*",
|
"Microsoft.AspNet.ConfigurationModel":"0.1-alpha-*",
|
||||||
"Microsoft.AspNet.PipelineCore":"0.1-alpha-*",
|
"Microsoft.AspNet.PipelineCore":"0.1-alpha-*",
|
||||||
"Microsoft.AspNet.Abstractions":"0.1-alpha-*",
|
"Microsoft.AspNet.Abstractions":"0.1-alpha-*",
|
||||||
"Microsoft.AspNet.FeatureModel":"0.1-alpha-*"
|
"Microsoft.AspNet.FeatureModel":"0.1-alpha-*"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue