Skip to content

Commit d621409

Browse files
author
1877682825@qq.com
committed
升级autofac.Annotation包,简化依赖注入的配置
1 parent 41804d0 commit d621409

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

ant.mgr/Infrastructure/Infrastructure/CodeGen/CrudTemplete/Respository.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ using ViewModels.Reuqest;
1818

1919
namespace Repository
2020
{
21-
[Component(typeof(I{{ModelClassName}}Respository), Interceptor = typeof(AsyncTimeoutInterceptor))]
21+
[Component(Interceptor = typeof(AsyncTimeoutInterceptor))]
2222
public class {{ModelClassName}}Respository : BaseRepository<{{ModelClassName}}>, I{{ModelClassName}}Respository
2323
{
2424

ant.mgr/Repository/Repository/AdminRepository/AccountRespository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace Repository
2020
/// <summary>
2121
/// 系统用户
2222
/// </summary>
23-
[Component(typeof(IAccountRespository), Interceptor = typeof(AsyncTimeoutInterceptor))]
23+
[Component(Interceptor = typeof(AsyncTimeoutInterceptor))]
2424
public class AccountRespository : BaseRepository<SystemUsers>, IAccountRespository
2525
{
2626

ant.mgr/Repository/Repository/AdminRepository/CommonRespository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Repository
2121
/// <summary>
2222
/// 公共处理
2323
/// </summary>
24-
[Component(typeof(ICommonRespository), Interceptor = typeof(AsyncTimeoutInterceptor))]
24+
[Component(Interceptor = typeof(AsyncTimeoutInterceptor))]
2525
public class CommonRespository : BaseRepository, ICommonRespository
2626
{
2727

ant.mgr/Repository/Repository/AdminRepository/MenuRespository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Repository
2121
/// <summary>
2222
/// 菜单处理
2323
/// </summary>
24-
[Component(typeof(IMenuRespository), Interceptor = typeof(AsyncTimeoutInterceptor))]
24+
[Component(Interceptor = typeof(AsyncTimeoutInterceptor))]
2525
public class MenuRespository : BaseRepository<SystemMenu>, IMenuRespository
2626
{
2727

ant.mgr/Repository/Repository/AdminRepository/RoleRespository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Repository
1919
/// <summary>
2020
/// 角色权限管理
2121
/// </summary>
22-
[Component(typeof(IRoleRespository), Interceptor = typeof(AsyncTimeoutInterceptor))]
22+
[Component(Interceptor = typeof(AsyncTimeoutInterceptor))]
2323
public class RoleRespository : BaseRepository<SystemRole>, IRoleRespository
2424
{
2525
/// <summary>

ant.mgr/Repository/Repository/Repository.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Autofac.Annotation" Version="2.0.1" />
12+
<PackageReference Include="Autofac.Annotation" Version="2.0.2" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

ant.mgr/mgr.core/ant.mgr.core.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414

1515
<ItemGroup>
16-
<PackageReference Include="Autofac.Annotation" Version="2.0.1" />
17-
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.4.0" />
16+
<PackageReference Include="Autofac.Annotation" Version="2.0.2" />
17+
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="5.0.0" />
1818
<PackageReference Include="Microsoft.AspNetCore.App" />
1919
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All" />
2020
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.3" />

0 commit comments

Comments
 (0)