Browse Source
Update AbpAutoMapperConventionalRegistrar.cs
pull/11224/head
maliming
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.AutoMapper/Volo/Abp/AutoMapper/AbpAutoMapperConventionalRegistrar.cs
|
|
|
@ -19,7 +19,7 @@ public class AbpAutoMapperConventionalRegistrar : DefaultConventionalRegistrar |
|
|
|
protected override bool IsConventionalRegistrationDisabled(Type type) |
|
|
|
{ |
|
|
|
return !type.GetInterfaces().Any(x => x.IsGenericType && OpenTypes.Contains(x.GetGenericTypeDefinition())) || |
|
|
|
base.IsConventionalRegistrationDisabled(type); |
|
|
|
base.IsConventionalRegistrationDisabled(type); |
|
|
|
} |
|
|
|
|
|
|
|
protected override ServiceLifetime? GetDefaultLifeTimeOrNull(Type type) |
|
|
|
|