Add OptionsServices in UseServices
This commit is contained in:
parent
44503744a3
commit
3fb1a06e25
|
|
@ -22,6 +22,7 @@ using System.Reflection;
|
|||
using Microsoft.AspNet.RequestContainer;
|
||||
using Microsoft.Framework.DependencyInjection;
|
||||
using Microsoft.Framework.DependencyInjection.Fallback;
|
||||
using Microsoft.Framework.OptionsModel;
|
||||
|
||||
namespace Microsoft.AspNet.Builder
|
||||
{
|
||||
|
|
@ -65,6 +66,7 @@ namespace Microsoft.AspNet.Builder
|
|||
{
|
||||
var serviceCollection = new ServiceCollection();
|
||||
|
||||
serviceCollection.Add(OptionsServices.GetDefaultServices());
|
||||
configureServices(serviceCollection);
|
||||
builder.ApplicationServices = serviceCollection.BuildServiceProvider(builder.ApplicationServices);
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
"version": "0.1-alpha-*",
|
||||
"dependencies": {
|
||||
"Microsoft.AspNet.Http": "0.1-alpha-*",
|
||||
"Microsoft.Framework.DependencyInjection": "0.1-alpha-*"
|
||||
"Microsoft.Framework.DependencyInjection": "0.1-alpha-*",
|
||||
"Microsoft.Framework.OptionsModel": "0.1-alpha-*"
|
||||
},
|
||||
"configurations": {
|
||||
"net45": {},
|
||||
|
|
|
|||
Loading…
Reference in New Issue