Remove options services from UseServices
Add OptionsModel.OptionServices.DefaultServices instead
This commit is contained in:
parent
aa76fe3b4f
commit
a2fd1e1d90
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue