diff --git a/RedLock/RedisLockFactory.cs b/RedLock/RedisLockFactory.cs index 3bab226..63b9b4a 100644 --- a/RedLock/RedisLockFactory.cs +++ b/RedLock/RedisLockFactory.cs @@ -116,7 +116,7 @@ public async Task<RedisLock> CreateAsync(string resource, TimeSpan expiryTime) /// <returns>A RedisLock object.</returns> public async Task<RedisLock> CreateAsync(string resource, TimeSpan expiryTime, TimeSpan waitTime, TimeSpan retryTime) { - return await RedisLock.CreateAsync(redisCaches, resource, expiryTime, waitTime, retryTime); + return await RedisLock.CreateAsync(redisCaches, resource, expiryTime, waitTime, retryTime).ConfigureAwait(false); } public void Dispose()