Browse Source

AggressiveInlining for TryAcquireAsync

pull/15817/head
Mark Cilia Vincenti 4 years ago
parent
commit
0e615b3acf
  1. 4
      framework/src/Volo.Abp.DistributedLocking.Abstractions/Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs

4
framework/src/Volo.Abp.DistributedLocking.Abstractions/Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs

@ -1,4 +1,5 @@
using System; using System;
using System.Runtime.CompilerServices;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using AsyncKeyedLock; using AsyncKeyedLock;
@ -19,7 +20,8 @@ public class LocalAbpDistributedLock : IAbpDistributedLock, ISingletonDependency
{ {
DistributedLockKeyNormalizer = distributedLockKeyNormalizer; DistributedLockKeyNormalizer = distributedLockKeyNormalizer;
} }
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public async Task<IAbpDistributedLockHandle> TryAcquireAsync( public async Task<IAbpDistributedLockHandle> TryAcquireAsync(
string name, string name,
TimeSpan timeout = default, TimeSpan timeout = default,

Loading…
Cancel
Save