Browse Source

Removing disposal code.

Former-commit-id: 9a6d027a47ae7828d0064a5bd743a9dc3815f8df
pull/17/head
James South 12 years ago
parent
commit
d008abb410
  1. 11
      src/ImageProcessor.Web/NET45/HttpModules/ImageProcessingModule.cs

11
src/ImageProcessor.Web/NET45/HttpModules/ImageProcessingModule.cs

@ -13,7 +13,6 @@ namespace ImageProcessor.Web.HttpModules
#region Using
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
@ -178,12 +177,6 @@ namespace ImageProcessor.Web.HttpModules
if (disposing)
{
// Dispose of any managed resources here.
foreach (KeyValuePair<string, SemaphoreSlim> semaphore in SemaphoreSlims)
{
semaphore.Value.Dispose();
}
SemaphoreSlims.Clear();
}
// Call the appropriate methods to clean up
@ -385,7 +378,7 @@ namespace ImageProcessor.Web.HttpModules
if (isRemote)
{
SemaphoreSlim semaphore = GetSemaphoreSlim(cachedPath);
#if NET45
#if NET45 && !__MonoCS__
await semaphore.WaitAsync();
#else
semaphore.Wait();
@ -437,7 +430,7 @@ namespace ImageProcessor.Web.HttpModules
else
{
SemaphoreSlim semaphore = GetSemaphoreSlim(cachedPath);
#if NET45
#if NET45 && !__MonoCS__
await semaphore.WaitAsync();
#else
semaphore.Wait();

Loading…
Cancel
Save