diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-03-23 22:45:00 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-03-23 22:45:00 -0400 |
| commit | e2dcddc5ac43846baea0f9b1a0fc62844dd9ee1d (patch) | |
| tree | e3818758a13a107cb28e54bb63ce489366ea50d5 /MediaBrowser.Api/Images/ImageWriter.cs | |
| parent | 521ec4936101d6affaf68a95cd8dee090395e2b6 (diff) | |
made compression and caching available to plugin api endpoints
Diffstat (limited to 'MediaBrowser.Api/Images/ImageWriter.cs')
| -rw-r--r-- | MediaBrowser.Api/Images/ImageWriter.cs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Images/ImageWriter.cs b/MediaBrowser.Api/Images/ImageWriter.cs index 4541a6afe..c130364fb 100644 --- a/MediaBrowser.Api/Images/ImageWriter.cs +++ b/MediaBrowser.Api/Images/ImageWriter.cs @@ -1,7 +1,9 @@ using MediaBrowser.Controller; using MediaBrowser.Controller.Entities; using ServiceStack.Service; +using ServiceStack.ServiceHost; using System; +using System.Collections.Generic; using System.IO; using System.Threading.Tasks; @@ -10,7 +12,7 @@ namespace MediaBrowser.Api.Images /// <summary> /// Class ImageWriter /// </summary> - public class ImageWriter : IStreamWriter + public class ImageWriter : IStreamWriter, IHasOptions { /// <summary> /// Gets or sets the request. @@ -33,6 +35,19 @@ namespace MediaBrowser.Api.Images public DateTime OriginalImageDateModified; /// <summary> + /// The _options + /// </summary> + private readonly IDictionary<string, string> _options = new Dictionary<string, string>(); + /// <summary> + /// Gets the options. + /// </summary> + /// <value>The options.</value> + public IDictionary<string, string> Options + { + get { return _options; } + } + + /// <summary> /// Writes to. /// </summary> /// <param name="responseStream">The response stream.</param> |
