From 4f67fc4aefc11c1a4293227c70de922dbe03c652 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Thu, 7 Mar 2013 00:34:00 -0500 Subject: removed base kernel and ikernel --- .../HttpServer/ServerFactory.cs | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 MediaBrowser.Server.Implementations/HttpServer/ServerFactory.cs (limited to 'MediaBrowser.Server.Implementations/HttpServer/ServerFactory.cs') diff --git a/MediaBrowser.Server.Implementations/HttpServer/ServerFactory.cs b/MediaBrowser.Server.Implementations/HttpServer/ServerFactory.cs new file mode 100644 index 000000000..75e077c38 --- /dev/null +++ b/MediaBrowser.Server.Implementations/HttpServer/ServerFactory.cs @@ -0,0 +1,27 @@ +using MediaBrowser.Common; +using MediaBrowser.Common.Net; +using MediaBrowser.Model.Logging; +using MediaBrowser.Model.Serialization; + +namespace MediaBrowser.Server.Implementations.HttpServer +{ + /// + /// Class ServerFactory + /// + public static class ServerFactory + { + /// + /// Creates the server. + /// + /// The application host. + /// The protobuf serializer. + /// The logger. + /// Name of the server. + /// The default redirectpath. + /// IHttpServer. + public static IHttpServer CreateServer(IApplicationHost applicationHost, IProtobufSerializer protobufSerializer, ILogger logger, string serverName, string defaultRedirectpath) + { + return new HttpServer(applicationHost, protobufSerializer, logger, serverName, defaultRedirectpath); + } + } +} -- cgit v1.2.3