jellyfin-server/MediaBrowser.Common.Implementations/HttpServer/ServerFactory.cs

28 lines
1.1 KiB
C#
Raw Normal View History

2013-02-24 21:53:54 +00:00
using MediaBrowser.Common.Kernel;
using MediaBrowser.Common.Net;
using MediaBrowser.Model.Logging;
using MediaBrowser.Model.Serialization;
2013-02-26 21:05:52 +00:00
namespace MediaBrowser.Common.Implementations.HttpServer
2013-02-24 21:53:54 +00:00
{
/// <summary>
/// Class ServerFactory
/// </summary>
public static class ServerFactory
{
/// <summary>
/// Creates the server.
/// </summary>
/// <param name="applicationHost">The application host.</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, IProtobufSerializer protobufSerializer, ILogger logger, string serverName, string defaultRedirectpath)
2013-02-24 21:53:54 +00:00
{
return new HttpServer(applicationHost, protobufSerializer, logger, serverName, defaultRedirectpath);
2013-02-24 21:53:54 +00:00
}
}
}