From 190e31d93997e3fa7119c3ef3afed89e385444c1 Mon Sep 17 00:00:00 2001 From: Jakub Baranowski Date: Wed, 26 Oct 2022 13:44:45 +0200 Subject: [PATCH] Better naming convention --- framework/src/Volo.Abp.Core/Volo/Abp/DisposeAction.cs | 4 ++-- .../Volo/Abp/MultiTenancy/CurrentTenant.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/src/Volo.Abp.Core/Volo/Abp/DisposeAction.cs b/framework/src/Volo.Abp.Core/Volo/Abp/DisposeAction.cs index 67fd64cae1..c6610efb44 100644 --- a/framework/src/Volo.Abp.Core/Volo/Abp/DisposeAction.cs +++ b/framework/src/Volo.Abp.Core/Volo/Abp/DisposeAction.cs @@ -28,11 +28,11 @@ public class DisposeAction : IDisposable } } -public class DisposeActionWithoutClosureAlloc : IDisposable +public class DisposeAction : IDisposable { private readonly Action _action; [CanBeNull] private readonly T _parameter; - public DisposeActionWithoutClosureAlloc(Action action, T parameter) + public DisposeAction(Action action, T parameter) { Check.NotNull(action, nameof(action)); diff --git a/framework/src/Volo.Abp.MultiTenancy/Volo/Abp/MultiTenancy/CurrentTenant.cs b/framework/src/Volo.Abp.MultiTenancy/Volo/Abp/MultiTenancy/CurrentTenant.cs index 013503d871..e5579a1e0a 100644 --- a/framework/src/Volo.Abp.MultiTenancy/Volo/Abp/MultiTenancy/CurrentTenant.cs +++ b/framework/src/Volo.Abp.MultiTenancy/Volo/Abp/MultiTenancy/CurrentTenant.cs @@ -27,7 +27,7 @@ public class CurrentTenant : ICurrentTenant, ITransientDependency { var parentScope = _currentTenantAccessor.Current; _currentTenantAccessor.Current = new BasicTenantInfo(tenantId, name); - return new DisposeActionWithoutClosureAlloc>(static (state) => + return new DisposeAction>(static (state) => { var (currentTenantAccessor, parentScope) = state; currentTenantAccessor.Current = parentScope;