I will add more test cases. Waiting for your real project.
Thanks.
hi
I will work on a minimal repro tomorrow.
Thank you very much. I will check your project as soon as possible once I receive it.
hi
I added a simple unit test, and there were no performance problems. https://github.com/abpframework/abp/pull/23316/files
hi
Can you set a breakpoint to see the Type of _distributedLock? It should be MedallionAbpDistributedLock.
Please also inject the IDistributedLockProvider and check its Type. It should be RedisDistributedSynchronizationProvider
Thanks.
hi
public class MyModuleApplicationModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddAutoMapperObjectMapper<MyModuleApplicationModule>();
Configure<AbpAutoMapperOptions>(options =>
{
options.AddMaps<MyModuleApplicationModule>(validate: true);
});
context.Services.OnRegistered(CheckBaseModelProviderInterceptorRegistrar.RegisterIfNeeded);
}
}
public class CheckBaseModelProviderInterceptorRegistrar
{
public static void RegisterIfNeeded(IOnServiceRegistredContext context)
{
if (ShouldIntercept(context.ImplementationType))
{
context.Interceptors.TryAdd<CheckBaseModelProviderInterceptor>();
}
}
private static bool ShouldIntercept(Type type)
{
return !DynamicProxyIgnoreTypes.Contains(type) &&
//typeof(ISampleAppService).IsAssignableFrom(type) && // Uncomment this line if you want to restrict to specific interfaces
(type.GetCustomAttributes(true).OfType<CheckBaseModelProviderAttribute>().Any() ||
type.GetMethods().Any(x => x.IsDefined(typeof(CheckBaseModelProviderAttribute), inherit: true)));
}
}
hi
You can click the user avatar to view all questions related to a user. Also, support search from the index page
https://abp.io/support/users/caginsozgen
https://abp.io/support/questions?Sort=LastActivityDate-desc&CurrentPage=1&CreatorUserId=3a156433-239b-2e3a-27bd-fc6d13d7cbf5&HidePinnedQuestions=True
Thanks.
hi
This problem was addressed in 9.2.2. Can you share a project that reproduces the problem? I will add a test to prevent this from happening in the future.
liming.ma@volosoft.com https://github.com/abpframework/abp/pull/23188
Thanks
Thanks @adhamawadhi 👍
Hi
You can share the test project , I will add the code for interception.
Thanks.
Hi
I will create an internal issue and discuss it with team.
Thanks