Merge remote-tracking branch 'origin/rel-4.0' into dev

pull/6198/head
Halil İbrahim Kalkan 5 years ago
commit 9e50c07008

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
@ -47,7 +47,7 @@ namespace Microsoft.AspNetCore.RequestLocalization
{
if (_requestLocalizationOptions == null)
{
using (await _syncSemaphore.LockAsync())
using (await _syncSemaphore.LockAsync().ConfigureAwait(false))
{
if (_requestLocalizationOptions == null)
{

@ -23,7 +23,7 @@ namespace Volo.Abp.BackgroundJobs.RabbitMQ
protected JobQueueConfiguration QueueConfiguration { get; }
protected IChannelAccessor ChannelAccessor { get; private set; }
protected EventingBasicConsumer Consumer { get; private set; }
public ILogger<JobQueue<TArgs>> Logger { get; set; }
protected AbpBackgroundJobOptions AbpBackgroundJobOptions { get; }
@ -76,7 +76,7 @@ namespace Volo.Abp.BackgroundJobs.RabbitMQ
{
CheckDisposed();
using (await SyncObj.LockAsync())
using (await SyncObj.LockAsync().ConfigureAwait(false))
{
await EnsureInitializedAsync();
@ -95,7 +95,7 @@ namespace Volo.Abp.BackgroundJobs.RabbitMQ
return;
}
using (await SyncObj.LockAsync())
using (await SyncObj.LockAsync().ConfigureAwait(false))
{
await EnsureInitializedAsync();
}
@ -151,7 +151,7 @@ namespace Volo.Abp.BackgroundJobs.RabbitMQ
}
protected virtual Task PublishAsync(
TArgs args,
TArgs args,
BackgroundJobPriority priority = BackgroundJobPriority.Normal,
TimeSpan? delay = null)
{

@ -64,7 +64,7 @@ namespace Volo.Abp.BackgroundJobs.RabbitMQ
return (IJobQueue<TArgs>)jobQueue;
}
using (await SyncSemaphore.LockAsync())
using (await SyncSemaphore.LockAsync().ConfigureAwait(false))
{
if (JobQueues.TryGetValue(jobConfiguration.JobName, out jobQueue))
{

@ -499,7 +499,7 @@ namespace Volo.Abp.Caching
return value;
}
using (await SyncSemaphore.LockAsync(token))
using (await SyncSemaphore.LockAsync(token).ConfigureAwait(false))
{
value = await GetAsync(key, hideErrors, considerUow, token);
if (value != null)

@ -21,7 +21,7 @@ namespace Volo.Abp.Threading
return;
}
using (await _semaphore.LockAsync())
using (await _semaphore.LockAsync().ConfigureAwait(false))
{
if (_runBefore)
{
@ -34,4 +34,4 @@ namespace Volo.Abp.Threading
}
}
}
}
}

@ -27,7 +27,7 @@ namespace Volo.Abp.Http.Client.DynamicProxying
string baseUrl,
Func<Task<ApplicationApiDescriptionModel>> factory)
{
using (await _semaphore.LockAsync(CancellationTokenProvider.Token))
using (await _semaphore.LockAsync(CancellationTokenProvider.Token).ConfigureAwait(false))
{
var model = _cache.GetOrDefault(baseUrl);
if (model == null)

@ -27,7 +27,7 @@ namespace Volo.Abp.TextTemplating.VirtualFiles
return reader;
}
using (await SyncObj.LockAsync())
using (await SyncObj.LockAsync().ConfigureAwait(false))
{
if (ReaderCache.TryGetValue(templateDefinition.Name, out reader))
{
@ -69,4 +69,4 @@ namespace Volo.Abp.TextTemplating.VirtualFiles
}
}
}
}
}

Loading…
Cancel
Save