// --------------------------------------------------------------------------------------------------------------------
//
// Copyright (c) James South.
// Licensed under the Apache License, Version 2.0.
//
//
// Throttles duplicate requests.
//
// --------------------------------------------------------------------------------------------------------------------
namespace ImageProcessor.Web.Helpers
{
using System;
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
///
/// Throttles duplicate requests.
/// Based loosely on
///
public sealed class AsyncDuplicateLock
{
///
/// The collection of semaphore slims.
///
private static readonly ConcurrentDictionary