diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-08 16:06:02 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-08 16:06:02 -0500 |
| commit | 34cc4eee9d35b5afa3116292a4f38f1703d42cae (patch) | |
| tree | 185dbcb1bb6263111030643c1259b3132f57d6b5 /MediaBrowser.Api/Images/ImageWriter.cs | |
| parent | 9ffb44244cbe59bea524989ab9edd395fed7e9a4 (diff) | |
more updates for api docs
Diffstat (limited to 'MediaBrowser.Api/Images/ImageWriter.cs')
| -rw-r--r-- | MediaBrowser.Api/Images/ImageWriter.cs | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/MediaBrowser.Api/Images/ImageWriter.cs b/MediaBrowser.Api/Images/ImageWriter.cs index 22c851056..4541a6afe 100644 --- a/MediaBrowser.Api/Images/ImageWriter.cs +++ b/MediaBrowser.Api/Images/ImageWriter.cs @@ -1,9 +1,7 @@ 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; @@ -12,7 +10,7 @@ namespace MediaBrowser.Api.Images /// <summary> /// Class ImageWriter /// </summary> - public class ImageWriter : IStreamWriter, IHasOptions + public class ImageWriter : IStreamWriter { /// <summary> /// Gets or sets the request. @@ -33,11 +31,6 @@ namespace MediaBrowser.Api.Images /// The original image date modified /// </summary> public DateTime OriginalImageDateModified; - /// <summary> - /// Gets or sets the type of the content. - /// </summary> - /// <value>The type of the content.</value> - public string ContentType { get; set; } /// <summary> /// Writes to. @@ -45,8 +38,6 @@ namespace MediaBrowser.Api.Images /// <param name="responseStream">The response stream.</param> public void WriteTo(Stream responseStream) { - Options["Content-Type"] = ContentType; - var task = WriteToAsync(responseStream); Task.WaitAll(task); @@ -63,18 +54,5 @@ namespace MediaBrowser.Api.Images OriginalImageDateModified, responseStream, Request.Width, Request.Height, Request.MaxWidth, Request.MaxHeight, Request.Quality); } - - /// <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; } - } } } |
