Browse Source

Add comments.

pull/96/head
Halil İbrahim Kalkan 9 years ago
parent
commit
3a18f49821
  1. 1
      src/Volo.Abp/Volo/Abp/AbpKernelModule.cs
  2. 1
      src/Volo.Abp/Volo/Abp/Uow/UnitOfWorkInterceptorRegistrar.cs

1
src/Volo.Abp/Volo/Abp/AbpKernelModule.cs

@ -17,6 +17,7 @@ namespace Volo.Abp
//TODO: Move to a dedicated class //TODO: Move to a dedicated class
services.OnExposing(context => services.OnExposing(context =>
{ {
//Register types for IObjectMapper<TSource, TDestination> if implements
context.ExposedTypes.AddRange( context.ExposedTypes.AddRange(
ReflectionHelper.GetImplementedGenericTypes( ReflectionHelper.GetImplementedGenericTypes(
context.ImplementationType, context.ImplementationType,

1
src/Volo.Abp/Volo/Abp/Uow/UnitOfWorkInterceptorRegistrar.cs

@ -9,6 +9,7 @@ namespace Volo.Abp.Uow
{ {
if (UnitOfWorkHelper.IsUnitOfWorkType(context.ImplementationType.GetTypeInfo())) if (UnitOfWorkHelper.IsUnitOfWorkType(context.ImplementationType.GetTypeInfo()))
{ {
//TODO: Notice that it may add the interceptor more than one for every exposed service type!?
context.Interceptors.Add<UnitOfWorkInterceptor>(); context.Interceptors.Add<UnitOfWorkInterceptor>();
} }
} }

Loading…
Cancel
Save