From 332f6359398b4a26df283ee3dbda40f7c3eaacc0 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Fri, 8 Mar 2013 12:25:25 -0500 Subject: Added IHttpResultFactory --- .../HttpServer/HttpResultFactory.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs') diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs new file mode 100644 index 000000000..2dd968988 --- /dev/null +++ b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs @@ -0,0 +1,14 @@ +using MediaBrowser.Common.Net; +using ServiceStack.Common.Web; +using System.IO; + +namespace MediaBrowser.Server.Implementations.HttpServer +{ + public class HttpResultFactory : IHttpResultFactory + { + public object GetResult(Stream stream, string contentType) + { + return new HttpResult(stream, contentType); + } + } +} -- cgit v1.2.3