using MediaBrowser.Common.Kernel;
using MediaBrowser.Common.Net;
using MediaBrowser.Model.Logging;
using MediaBrowser.Model.Serialization;
namespace MediaBrowser.Common.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);
}
}
}