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;