mirror of https://github.com/SixLabors/ImageSharp
Browse Source
ImageProcessor v2.2.0.0 ImageProcessor.Web v4.2.0.0 ImageProcessor.Web.PostProcessor v1.0.2.0 ImageProcessor.Web.Config v2.2.0.0 ImageProcessor.Web.AzureBlobCache v1.0.0.0 Former-commit-id: dbc295c25fbcea2d328b8dea80b45742f31fd241 Former-commit-id: 59bc4ee9d9bbf4c426e8bb35caafb88634266ff3pull/17/head
22 changed files with 121 additions and 78 deletions
@ -0,0 +1,40 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> |
|||
<metadata> |
|||
<id>ImageProcessor.Web.AzureBlobCache</id> |
|||
<version>1.0.0.0</version> |
|||
<title>ImageProcessor.Web.AzureBlobCache</title> |
|||
<authors>James South</authors> |
|||
<owners>James South</owners> |
|||
<projectUrl>http://imageprocessor.org</projectUrl> |
|||
<iconUrl>http://imageprocessor.org/assets/ico/apple-touch-icon-144x144.png</iconUrl> |
|||
<requireLicenseAcceptance>false</requireLicenseAcceptance> |
|||
<description>Adds a self cleaning cache that uses Azure Blob Containers to store processed images. |
|||
|
|||
If you use ImageProcessor.Web please get in touch via my twitter @james_m_south |
|||
|
|||
Feedback is always welcome</description> |
|||
<summary>ImageProcessor.Web AzureBlobCache for ASP.NET websites.</summary> |
|||
<releaseNotes /> |
|||
<copyright>James South</copyright> |
|||
<language>en-GB</language> |
|||
<tags>Image Resize Crop Rotate Quality Watermark Gif Jpg Jpeg Bitmap Png Tiff Azure Cache Asp</tags> |
|||
<dependencies> |
|||
<group targetFramework=".NETFramework4.5"> |
|||
<dependency id="ImageProcessor" version="2.2.0.0" /> |
|||
<dependency id="ImageProcessor.Web" version="4.2.0.0" /> |
|||
<dependency id="Microsoft.Data.Edm" version="5.6.2" /> |
|||
<dependency id="Microsoft.Data.OData" version="5.6.2" /> |
|||
<dependency id="Microsoft.Data.Services.Client" version="5.6.2" /> |
|||
<dependency id="Microsoft.WindowsAzure.ConfigurationManager" version="1.8.0.0" /> |
|||
<dependency id="Newtonsoft.Json" version="5.0.8" /> |
|||
<dependency id="System.Spatial" version="5.6.2" /> |
|||
<dependency id="WindowsAzure.Storage" version="4.3.0" /> |
|||
</group> |
|||
</dependencies> |
|||
</metadata> |
|||
<files> |
|||
<file src="..\content\ImageProcessor.Web.AzureBlobCache\config\imageprocessor\cache.config.transform" target="content\config\imageprocessor\cache.config.transform" /> |
|||
<file src="..\_BuildOutput\ImageProcessor.Web.AzureBlobCache\lib\net45\ImageProcessor.Web.Caching.AzureBlobCache.dll" target="lib\net45\ImageProcessor.Web.Caching.AzureBlobCache.dll" /> |
|||
</files> |
|||
</package> |
|||
@ -0,0 +1,15 @@ |
|||
<caching currentCache="AzureBlobCache"> |
|||
<caches> |
|||
<cache name="AzureBlobCache" type="ImageProcessor.Web.Caching.AzureBlobCache, ImageProcessor.Web.Caching.AzureBlobCache"> |
|||
<settings> |
|||
<setting key="MaxDays" value="365"/> |
|||
<setting key="CachedStorageAccount" value="DefaultEndpointsProtocol=https;AccountName=[CacheAccountName];AccountKey=[CacheAccountKey]"/> |
|||
<setting key="SourceStorageAccount" value="DefaultEndpointsProtocol=https;AccountName=[SourceAccountName];AccountKey=[SourceAccountKey]"/> |
|||
<setting key="CachedBlobContainer" value="cache"/> |
|||
<setting key="SourceBlobContainer" value="source"/> |
|||
<setting key="CachedCDNRoot" value="[CdnRootUrl]"/> |
|||
</settings> |
|||
</cache> |
|||
</caches> |
|||
</caching> |
|||
|
|||
@ -1,19 +0,0 @@ |
|||
namespace ImageProcessor.Web.Extensions |
|||
{ |
|||
using System; |
|||
using System.Linq.Expressions; |
|||
|
|||
internal static class TypePropertyHelpers |
|||
{ |
|||
public static string GetPropertyName<T>(Expression<Func<T>> expression) |
|||
{ |
|||
MemberExpression member = expression.Body as MemberExpression; |
|||
if (member != null) |
|||
{ |
|||
return member.Member.Name; |
|||
} |
|||
|
|||
throw new ArgumentException("expression"); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue