aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Images/ImageWriter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Api/Images/ImageWriter.cs')
-rw-r--r--MediaBrowser.Api/Images/ImageWriter.cs17
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>