Browse Source

Make DisposalScope private

Former-commit-id: 37dfbb252936c81d0b2014fa4e01809564505451
af/merge-core
James South 12 years ago
parent
commit
8a302ac126
  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