mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 14:04:41 +08:00
优化注入
This commit is contained in:
parent
e46d162ead
commit
627f43c4fd
@ -80,7 +80,7 @@ namespace OpenAuth.App
|
||||
builder.RegisterGeneric(typeof(BaseRepository<,>)).As(typeof(IRepository<,>));
|
||||
builder.RegisterGeneric(typeof(UnitWork<>)).As(typeof(IUnitWork<>));
|
||||
//注入授权
|
||||
builder.RegisterType(typeof(LocalAuth)).As(typeof(IAuth));
|
||||
builder.RegisterType(typeof(LocalAuth)).As(typeof(IAuth)).InstancePerLifetimeScope();
|
||||
|
||||
//注册app层
|
||||
builder.RegisterAssemblyTypes(Assembly.GetExecutingAssembly());
|
||||
|
Loading…
Reference in New Issue
Block a user