aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Networking/HttpServer/ServerFactory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Networking/HttpServer/ServerFactory.cs')
-rw-r--r--MediaBrowser.Networking/HttpServer/ServerFactory.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/MediaBrowser.Networking/HttpServer/ServerFactory.cs b/MediaBrowser.Networking/HttpServer/ServerFactory.cs
new file mode 100644
index 000000000..e853a6ec2
--- /dev/null
+++ b/MediaBrowser.Networking/HttpServer/ServerFactory.cs
@@ -0,0 +1,28 @@
+using MediaBrowser.Common.Kernel;
+using MediaBrowser.Common.Net;
+using MediaBrowser.Model.Logging;
+using MediaBrowser.Model.Serialization;
+
+namespace MediaBrowser.Networking.HttpServer
+{
+ /// <summary>
+ /// Class ServerFactory
+ /// </summary>
+ public static class ServerFactory
+ {
+ /// <summary>
+ /// Creates the server.
+ /// </summary>
+ /// <param name="applicationHost">The application host.</param>
+ /// <param name="kernel">The kernel.</param>
+ /// <param name="protobufSerializer">The protobuf serializer.</param>
+ /// <param name="logger">The logger.</param>
+ /// <param name="serverName">Name of the server.</param>
+ /// <param name="defaultRedirectpath">The default redirectpath.</param>
+ /// <returns>IHttpServer.</returns>
+ public static IHttpServer CreateServer(IApplicationHost applicationHost, IKernel kernel, IProtobufSerializer protobufSerializer, ILogger logger, string serverName, string defaultRedirectpath)
+ {
+ return new HttpServer(applicationHost, kernel, protobufSerializer, logger, serverName, defaultRedirectpath);
+ }
+ }
+}