diff --git a/build/NuSpecs/ImageProcessor.Web.AzureBlobCache.nuspec b/build/NuSpecs/ImageProcessor.Web.Plugins.AzureBlobCache.nuspec
similarity index 76%
rename from build/NuSpecs/ImageProcessor.Web.AzureBlobCache.nuspec
rename to build/NuSpecs/ImageProcessor.Web.Plugins.AzureBlobCache.nuspec
index e169bc15f..ab7db7651 100644
--- a/build/NuSpecs/ImageProcessor.Web.AzureBlobCache.nuspec
+++ b/build/NuSpecs/ImageProcessor.Web.Plugins.AzureBlobCache.nuspec
@@ -1,9 +1,9 @@
- ImageProcessor.Web.AzureBlobCache
+ ImageProcessor.Web.Plugins.AzureBlobCache
1.0.0.0
- ImageProcessor.Web.AzureBlobCache
+ ImageProcessor.Web.Plugins.AzureBlobCache
James South
James South
http://imageprocessor.org
@@ -34,7 +34,7 @@ Feedback is always welcome
-
-
+
+
\ No newline at end of file
diff --git a/build/build.xml b/build/build.xml
index ddcb9bc5c..970865bff 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -23,14 +23,14 @@
- ImageProcessor Web Azure Blob Cache
+ ImageProcessor Web Azure Blob Cache plugin
1.0.0.0
- ..\src\ImageProcessor.Web.AzureBlobCache
- ImageProcessor.Web.AzureBlobCache.csproj
+ ..\src\Plugins\ImageProcessor.Web\ImageProcessor.Web.Plugins.AzureBlobCache
+ ImageProcessor.Web.Plugins.AzureBlobCache.csproj
-
+
- ImageProcessor.Web.AzureBlobCache.nuspec
+ ImageProcessor.Web.Plugins.AzureBlobCache.nuspec
diff --git a/build/content/ImageProcessor.Web.AzureBlobCache/config/imageprocessor/cache.config.transform b/build/content/ImageProcessor.Web.Plugins.AzureBlobCache/config/imageprocessor/cache.config.transform
similarity index 100%
rename from build/content/ImageProcessor.Web.AzureBlobCache/config/imageprocessor/cache.config.transform
rename to build/content/ImageProcessor.Web.Plugins.AzureBlobCache/config/imageprocessor/cache.config.transform
diff --git a/build/content/imageprocessor.128.png b/build/content/imageprocessor.128.png
deleted file mode 100644
index 9ed41d12f..000000000
--- a/build/content/imageprocessor.128.png
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:895ce5d9c5a733a68dccfac1b9f8cd4daed3a0ce2d9f1f8e21ba3aa113dbfe42
-size 5747
diff --git a/src/ImageProcessor.Playground/ImageProcessor.Playground.csproj b/src/ImageProcessor.Playground/ImageProcessor.Playground.csproj
index 0c659620c..9bdf6c2b8 100644
--- a/src/ImageProcessor.Playground/ImageProcessor.Playground.csproj
+++ b/src/ImageProcessor.Playground/ImageProcessor.Playground.csproj
@@ -55,9 +55,9 @@
-
+
{3c805e4c-d679-43f8-8c43-8909cdb4d4d7}
- ImageProcessor.Web.AzureBlobCache
+ ImageProcessor.Web.Plugins.AzureBlobCache
{d011a778-59c8-4bfa-a770-c350216bf161}
diff --git a/src/ImageProcessor.Web/Caching/CacheIndexer.cs b/src/ImageProcessor.Web/Caching/CacheIndexer.cs
index 1b4b581cd..e872366f1 100644
--- a/src/ImageProcessor.Web/Caching/CacheIndexer.cs
+++ b/src/ImageProcessor.Web/Caching/CacheIndexer.cs
@@ -64,17 +64,18 @@ namespace ImageProcessor.Web.Caching
///
public static CachedImage Add(CachedImage cachedImage)
{
+ // Add the CachedImage with a sliding expiration of 10 minutes.
+ CacheItemPolicy policy = new CacheItemPolicy { SlidingExpiration = new TimeSpan(0, 10, 0) };
+
if (new Uri(cachedImage.Path).IsFile)
{
- // Add the CachedImage.
- CacheItemPolicy policy = new CacheItemPolicy();
policy.ChangeMonitors.Add(new HostFileChangeMonitor(new List { cachedImage.Path }));
MemCache.AddItem(Path.GetFileNameWithoutExtension(cachedImage.Key), cachedImage, policy);
}
else
{
- MemCache.AddItem(Path.GetFileNameWithoutExtension(cachedImage.Key), cachedImage);
+ MemCache.AddItem(Path.GetFileNameWithoutExtension(cachedImage.Key), cachedImage, policy);
}
return cachedImage;
diff --git a/src/ImageProcessor.sln b/src/ImageProcessor.sln
index 95c7c32aa..d2a3a39fb 100644
--- a/src/ImageProcessor.sln
+++ b/src/ImageProcessor.sln
@@ -28,7 +28,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageProcessor.Playground",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageProcessor.Web.PostProcessor", "ImageProcessor.Web.PostProcessor\ImageProcessor.Web.PostProcessor.csproj", "{55D08737-7D7E-4995-8892-BD9F944329E6}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageProcessor.Web.AzureBlobCache", "ImageProcessor.Web.AzureBlobCache\ImageProcessor.Web.AzureBlobCache.csproj", "{3C805E4C-D679-43F8-8C43-8909CDB4D4D7}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageProcessor.Web.Plugins.AzureBlobCache", "Plugins\ImageProcessor.Web\ImageProcessor.Web.Plugins.AzureBlobCache\ImageProcessor.Web.Plugins.AzureBlobCache.csproj", "{3C805E4C-D679-43F8-8C43-8909CDB4D4D7}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{B5217BED-B0B7-408E-81B7-877DE2BF9036}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Plugins", "Plugins", "{5D12E196-FB7A-4D97-B156-56901EF8084D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -197,6 +201,14 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {2CF69699-959A-44DC-A281-4E2596C25043} = {5D12E196-FB7A-4D97-B156-56901EF8084D}
+ {961340C8-8C93-401D-A0A2-FF9EC61E5260} = {B5217BED-B0B7-408E-81B7-877DE2BF9036}
+ {633B1C4C-4823-47BE-9A01-A665F3118C8C} = {B5217BED-B0B7-408E-81B7-877DE2BF9036}
+ {F6A208E9-C18F-43E9-B051-3C6EED30FDAF} = {B5217BED-B0B7-408E-81B7-877DE2BF9036}
+ {C7D1F0DD-CBD6-4127-82B4-51949EFF0BF5} = {5D12E196-FB7A-4D97-B156-56901EF8084D}
+ {3C805E4C-D679-43F8-8C43-8909CDB4D4D7} = {5D12E196-FB7A-4D97-B156-56901EF8084D}
+ EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = ImageProcessorConsole\ImageProcessorConsole.csproj
EndGlobalSection
diff --git a/src/ImageProcessor.Web.AzureBlobCache/AzureBlobCache.cs b/src/Plugins/ImageProcessor.Web/ImageProcessor.Web.Plugins.AzureBlobCache/AzureBlobCache.cs
similarity index 99%
rename from src/ImageProcessor.Web.AzureBlobCache/AzureBlobCache.cs
rename to src/Plugins/ImageProcessor.Web/ImageProcessor.Web.Plugins.AzureBlobCache/AzureBlobCache.cs
index fca2bcbf1..46f5c9b50 100644
--- a/src/ImageProcessor.Web.AzureBlobCache/AzureBlobCache.cs
+++ b/src/Plugins/ImageProcessor.Web/ImageProcessor.Web.Plugins.AzureBlobCache/AzureBlobCache.cs
@@ -9,7 +9,7 @@
//
// --------------------------------------------------------------------------------------------------------------------
-namespace ImageProcessor.Web.Caching
+namespace ImageProcessor.Web.Plugins.AzureBlobCache
{
using System;
using System.Collections.Generic;
@@ -21,6 +21,7 @@ namespace ImageProcessor.Web.Caching
using System.Threading.Tasks;
using System.Web;
+ using ImageProcessor.Web.Caching;
using ImageProcessor.Web.Extensions;
using ImageProcessor.Web.Helpers;
using ImageProcessor.Web.HttpModules;
diff --git a/src/ImageProcessor.Web.AzureBlobCache/ImageProcessor.Web.AzureBlobCache.csproj b/src/Plugins/ImageProcessor.Web/ImageProcessor.Web.Plugins.AzureBlobCache/ImageProcessor.Web.Plugins.AzureBlobCache.csproj
similarity index 72%
rename from src/ImageProcessor.Web.AzureBlobCache/ImageProcessor.Web.AzureBlobCache.csproj
rename to src/Plugins/ImageProcessor.Web/ImageProcessor.Web.Plugins.AzureBlobCache/ImageProcessor.Web.Plugins.AzureBlobCache.csproj
index 6e57a2a38..f0c7682af 100644
--- a/src/ImageProcessor.Web.AzureBlobCache/ImageProcessor.Web.AzureBlobCache.csproj
+++ b/src/Plugins/ImageProcessor.Web/ImageProcessor.Web.Plugins.AzureBlobCache/ImageProcessor.Web.Plugins.AzureBlobCache.csproj
@@ -7,8 +7,8 @@
{3C805E4C-D679-43F8-8C43-8909CDB4D4D7}
Library
Properties
- ImageProcessor.Web.Caching
- ImageProcessor.Web.Caching.AzureBlobCache
+ ImageProcessor.Web.Plugins.AzureBlobCache
+ ImageProcessor.Web.Plugins.AzureBlobCache
v4.5
512
..\
@@ -32,34 +32,33 @@
4
-
- ..\packages\Microsoft.Data.Edm.5.6.2\lib\net40\Microsoft.Data.Edm.dll
- True
+
+ False
+ ..\..\..\packages\Microsoft.Data.Edm.5.6.2\lib\net40\Microsoft.Data.Edm.dll
-
- ..\packages\Microsoft.Data.OData.5.6.2\lib\net40\Microsoft.Data.OData.dll
- True
+
+ False
+ ..\..\..\packages\Microsoft.Data.OData.5.6.2\lib\net40\Microsoft.Data.OData.dll
False
- ..\packages\Microsoft.Data.Services.Client.5.6.2\lib\net40\Microsoft.Data.Services.Client.dll
+ ..\..\..\packages\Microsoft.Data.Services.Client.5.6.2\lib\net40\Microsoft.Data.Services.Client.dll
- ..\packages\Microsoft.WindowsAzure.ConfigurationManager.1.8.0.0\lib\net35-full\Microsoft.WindowsAzure.Configuration.dll
+ ..\..\..\packages\Microsoft.WindowsAzure.ConfigurationManager.1.8.0.0\lib\net35-full\Microsoft.WindowsAzure.Configuration.dll
- ..\packages\WindowsAzure.Storage.4.3.0\lib\net40\Microsoft.WindowsAzure.Storage.dll
+ ..\..\..\packages\WindowsAzure.Storage.4.3.0\lib\net40\Microsoft.WindowsAzure.Storage.dll
-
- ..\packages\Newtonsoft.Json.5.0.8\lib\net45\Newtonsoft.Json.dll
- True
+
+ ..\..\..\packages\Newtonsoft.Json.5.0.8\lib\net45\Newtonsoft.Json.dll
False
- ..\packages\System.Spatial.5.6.2\lib\net40\System.Spatial.dll
+ ..\..\..\packages\System.Spatial.5.6.2\lib\net40\System.Spatial.dll
@@ -73,7 +72,7 @@
-
+
{d011a778-59c8-4bfa-a770-c350216bf161}
ImageProcessor.Web
diff --git a/src/ImageProcessor.Web.AzureBlobCache/Properties/AssemblyInfo.cs b/src/Plugins/ImageProcessor.Web/ImageProcessor.Web.Plugins.AzureBlobCache/Properties/AssemblyInfo.cs
similarity index 100%
rename from src/ImageProcessor.Web.AzureBlobCache/Properties/AssemblyInfo.cs
rename to src/Plugins/ImageProcessor.Web/ImageProcessor.Web.Plugins.AzureBlobCache/Properties/AssemblyInfo.cs
diff --git a/src/ImageProcessor.Web.AzureBlobCache/packages.config b/src/Plugins/ImageProcessor.Web/ImageProcessor.Web.Plugins.AzureBlobCache/packages.config
similarity index 100%
rename from src/ImageProcessor.Web.AzureBlobCache/packages.config
rename to src/Plugins/ImageProcessor.Web/ImageProcessor.Web.Plugins.AzureBlobCache/packages.config
diff --git a/src/TestWebsites/MVC/Test_Website_MVC.csproj b/src/TestWebsites/MVC/Test_Website_MVC.csproj
index 3351fa9bf..a53fcbde1 100644
--- a/src/TestWebsites/MVC/Test_Website_MVC.csproj
+++ b/src/TestWebsites/MVC/Test_Website_MVC.csproj
@@ -152,9 +152,9 @@
-
+
{3c805e4c-d679-43f8-8c43-8909cdb4d4d7}
- ImageProcessor.Web.AzureBlobCache
+ ImageProcessor.Web.Plugins.AzureBlobCache
{55d08737-7d7e-4995-8892-bd9f944329e6}
diff --git a/src/packages/repositories.config b/src/packages/repositories.config
index 56a02b395..617771d44 100644
--- a/src/packages/repositories.config
+++ b/src/packages/repositories.config
@@ -1,7 +1,7 @@
-
+
\ No newline at end of file