Remove options services from UseServices

Add OptionsModel.OptionServices.DefaultServices instead
This commit is contained in:
Hao Kung 2014-05-28 12:09:29 -07:00
parent aa76fe3b4f
commit a2fd1e1d90
1 changed files with 0 additions and 8 deletions

View File

@ -65,14 +65,6 @@ namespace Microsoft.AspNet.Builder
{
var serviceCollection = new ServiceCollection();
// TODO: Review whether this is the right long term home, and whether Scoped is correct lifetime
serviceCollection.Add(new ServiceDescriptor
{
ServiceType = typeof(IOptionsAccessor<>),
ImplementationType = typeof(OptionsAccessor<>),
Lifecycle = LifecycleKind.Scoped
});
configureServices(serviceCollection);
builder.ApplicationServices = serviceCollection.BuildServiceProvider(builder.ApplicationServices);