Files
jellyfin-jellyfin-1/MediaBrowser.Server.Implementations/HttpServer/ServerFactory.cs

37 lines
1.2 KiB
C#
Raw Normal View History

2016-10-26 02:01:42 -04:00
using MediaBrowser.Common.Net;
using MediaBrowser.Controller;
2015-06-13 00:14:48 -04:00
using MediaBrowser.Controller.Configuration;
2013-12-07 10:52:38 -05:00
using MediaBrowser.Controller.Net;
2016-11-08 13:44:23 -05:00
using MediaBrowser.Model.Cryptography;
using MediaBrowser.Model.IO;
2013-02-24 16:53:54 -05:00
using MediaBrowser.Model.Logging;
2016-11-08 13:44:23 -05:00
using MediaBrowser.Model.Net;
using MediaBrowser.Model.Text;
2013-02-24 16:53:54 -05:00
2013-03-07 00:34:00 -05:00
namespace MediaBrowser.Server.Implementations.HttpServer
2013-02-24 16:53:54 -05:00
{
/// <summary>
/// Class ServerFactory
/// </summary>
public static class ServerFactory
{
/// <summary>
/// Creates the server.
/// </summary>
/// <returns>IHttpServer.</returns>
2016-10-26 02:01:42 -04:00
public static IHttpServer CreateServer(IServerApplicationHost applicationHost,
2015-06-13 00:14:48 -04:00
ILogManager logManager,
IServerConfigurationManager config,
2016-10-26 02:01:42 -04:00
INetworkManager networkmanager,
2016-11-08 13:44:23 -05:00
IMemoryStreamFactory streamProvider,
2014-10-06 19:58:46 -04:00
string serverName,
2016-11-08 13:44:23 -05:00
string defaultRedirectpath,
ITextEncoding textEncoding,
ISocketFactory socketFactory,
ICryptoProvider cryptoProvider)
2013-02-24 16:53:54 -05:00
{
2016-11-08 13:44:23 -05:00
return new HttpListenerHost(applicationHost, logManager, config, serverName, defaultRedirectpath, networkmanager, streamProvider, textEncoding, socketFactory, cryptoProvider);
2013-02-24 16:53:54 -05:00
}
}
}