2013-03-07 05:34:00 +00:00
|
|
|
|
using MediaBrowser.Common;
|
2013-02-24 21:53:54 +00:00
|
|
|
|
using MediaBrowser.Common.Net;
|
|
|
|
|
using MediaBrowser.Model.Logging;
|
|
|
|
|
|
2013-03-07 05:34:00 +00:00
|
|
|
|
namespace MediaBrowser.Server.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="logger">The logger.</param>
|
|
|
|
|
/// <param name="serverName">Name of the server.</param>
|
|
|
|
|
/// <param name="defaultRedirectpath">The default redirectpath.</param>
|
|
|
|
|
/// <returns>IHttpServer.</returns>
|
2013-04-07 22:09:48 +00:00
|
|
|
|
public static IHttpServer CreateServer(IApplicationHost applicationHost, ILogger logger, string serverName, string defaultRedirectpath)
|
2013-02-24 21:53:54 +00:00
|
|
|
|
{
|
2013-04-07 22:09:48 +00:00
|
|
|
|
return new HttpServer(applicationHost, logger, serverName, defaultRedirectpath);
|
2013-02-24 21:53:54 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|