From 0e615b3acfa5352bf6cd03fa113748f6f0a81fc0 Mon Sep 17 00:00:00 2001 From: Mark Cilia Vincenti Date: Mon, 27 Feb 2023 14:26:22 +0100 Subject: [PATCH] AggressiveInlining for TryAcquireAsync --- .../Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.DistributedLocking.Abstractions/Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs b/framework/src/Volo.Abp.DistributedLocking.Abstractions/Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs index 526df6464a..0b3674c5bf 100644 --- a/framework/src/Volo.Abp.DistributedLocking.Abstractions/Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs +++ b/framework/src/Volo.Abp.DistributedLocking.Abstractions/Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs @@ -1,4 +1,5 @@ using System; +using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using AsyncKeyedLock; @@ -19,7 +20,8 @@ public class LocalAbpDistributedLock : IAbpDistributedLock, ISingletonDependency { DistributedLockKeyNormalizer = distributedLockKeyNormalizer; } - + + [MethodImpl(MethodImplOptions.AggressiveInlining)] public async Task TryAcquireAsync( string name, TimeSpan timeout = default,