mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-10-31 10:37:22 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using MediaBrowser.Common;
 | |
| using MediaBrowser.Common.Net;
 | |
| using MediaBrowser.Model.Logging;
 | |
| using MediaBrowser.Model.Serialization;
 | |
| 
 | |
| namespace MediaBrowser.Server.Implementations.HttpServer
 | |
| {
 | |
|     /// <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)
 | |
|         {
 | |
|             return new HttpServer(applicationHost, protobufSerializer, logger, serverName, defaultRedirectpath);
 | |
|         }
 | |
|     }
 | |
| }
 |