mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 18:47:55 +08:00
完成机构与用户管理
This commit is contained in:
@@ -12,13 +12,13 @@
|
||||
// <summary>IOC<4F><43>ʼ<EFBFBD><CABC></summary>
|
||||
// ***********************************************************************
|
||||
|
||||
using System.Reflection;
|
||||
using System.Web.Mvc;
|
||||
using Autofac;
|
||||
using Autofac.Integration.Mvc;
|
||||
using OpenAuth.App;
|
||||
using OpenAuth.Domain.Interface;
|
||||
using OpenAuth.Repository;
|
||||
using System.Reflection;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace OpenAuth.Mvc
|
||||
{
|
||||
@@ -32,9 +32,11 @@ namespace OpenAuth.Mvc
|
||||
builder.RegisterType<OrgRepository>().As<IOrgRepository>();
|
||||
builder.RegisterType<LoginApp>();
|
||||
builder.RegisterType<OrgManagerApp>();
|
||||
builder.RegisterType<UserManagerApp>();
|
||||
|
||||
|
||||
// Register your MVC controllers.
|
||||
builder.RegisterControllers(typeof (MvcApplication).Assembly);
|
||||
builder.RegisterControllers(typeof(MvcApplication).Assembly);
|
||||
|
||||
// OPTIONAL: Register model binders that require DI.
|
||||
builder.RegisterModelBinders(Assembly.GetExecutingAssembly());
|
||||
|
Reference in New Issue
Block a user