diff options
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/StreamWriter.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/StreamWriter.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/StreamWriter.cs b/MediaBrowser.Server.Implementations/HttpServer/StreamWriter.cs index da84a51cd..46d38ad14 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/StreamWriter.cs +++ b/MediaBrowser.Server.Implementations/HttpServer/StreamWriter.cs @@ -19,7 +19,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer /// Gets or sets the source stream. /// </summary> /// <value>The source stream.</value> - public Stream SourceStream { get; set; } + private Stream SourceStream { get; set; } /// <summary> /// The _options @@ -54,6 +54,17 @@ namespace MediaBrowser.Server.Implementations.HttpServer } /// <summary> + /// Initializes a new instance of the <see cref="StreamWriter"/> class. + /// </summary> + /// <param name="source">The source.</param> + /// <param name="contentType">Type of the content.</param> + /// <param name="logger">The logger.</param> + public StreamWriter(byte[] source, string contentType, ILogger logger) + : this(new MemoryStream(source), contentType, logger) + { + } + + /// <summary> /// Writes to. /// </summary> /// <param name="responseStream">The response stream.</param> |
