Browse Source

Make DisposalScope private

Former-commit-id: 7fcd837fff8b8138ac82b70392e7df221b610128
af/merge-core
James South 12 years ago
parent
commit
9e6f118fe5
  1. 7
      src/ImageProcessor.Web/NET45/Helpers/AsyncDeDuperLock.cs

7
src/ImageProcessor.Web/NET45/Helpers/AsyncDeDuperLock.cs

@ -23,7 +23,8 @@ namespace ImageProcessor.Web.Helpers
/// <summary>
/// The semaphore slims.
/// </summary>
private static readonly ConcurrentDictionary<string, SemaphoreSlim> SemaphoreSlims = new ConcurrentDictionary<string, SemaphoreSlim>();
private static readonly ConcurrentDictionary<string, SemaphoreSlim> SemaphoreSlims
= new ConcurrentDictionary<string, SemaphoreSlim>();
/// <summary>
/// The lock.
@ -79,7 +80,7 @@ namespace ImageProcessor.Web.Helpers
Task<IDisposable> releaserTask = Task.FromResult(releaser as IDisposable);
SemaphoreSlim semaphore = SemaphoreSlims.GetOrAdd(key, new SemaphoreSlim(1, 1));
Task waitTask = semaphore.WaitAsync();
return waitTask.IsCompleted
@ -95,7 +96,7 @@ namespace ImageProcessor.Web.Helpers
/// <summary>
/// The disposable scope.
/// </summary>
internal sealed class DisposableScope : IDisposable
private sealed class DisposableScope : IDisposable
{
/// <summary>
/// The key

Loading…
Cancel
Save