浏览代码

Address comments

Bond-009 6 年之前
父节点
当前提交
c74028d08d
共有 1 个文件被更改,包括 4 次插入6 次删除
  1. 4 6
      Emby.Server.Implementations/ApplicationHost.cs

+ 4 - 6
Emby.Server.Implementations/ApplicationHost.cs

@@ -477,7 +477,6 @@ namespace Emby.Server.Implementations
             catch (Exception ex)
             catch (Exception ex)
             {
             {
                 Logger.LogError(ex, "Error creating {Type}", type);
                 Logger.LogError(ex, "Error creating {Type}", type);
-                // Don't blow up in release mode
                 return null;
                 return null;
             }
             }
         }
         }
@@ -767,7 +766,8 @@ namespace Emby.Server.Implementations
             SessionManager = new SessionManager(UserDataManager, LoggerFactory, LibraryManager, UserManager, musicManager, DtoService, ImageProcessor, JsonSerializer, this, HttpClient, AuthenticationRepository, DeviceManager, MediaSourceManager);
             SessionManager = new SessionManager(UserDataManager, LoggerFactory, LibraryManager, UserManager, musicManager, DtoService, ImageProcessor, JsonSerializer, this, HttpClient, AuthenticationRepository, DeviceManager, MediaSourceManager);
             serviceCollection.AddSingleton(SessionManager);
             serviceCollection.AddSingleton(SessionManager);
 
 
-            serviceCollection.AddSingleton<IDlnaManager>(new DlnaManager(XmlSerializer, FileSystemManager, ApplicationPaths, LoggerFactory, JsonSerializer, this, assemblyInfo));
+            serviceCollection.AddSingleton<IDlnaManager>(
+                new DlnaManager(XmlSerializer, FileSystemManager, ApplicationPaths, LoggerFactory, JsonSerializer, this, assemblyInfo));
 
 
             CollectionManager = new CollectionManager(LibraryManager, ApplicationPaths, LocalizationManager, FileSystemManager, LibraryMonitor, LoggerFactory, ProviderManager);
             CollectionManager = new CollectionManager(LibraryManager, ApplicationPaths, LocalizationManager, FileSystemManager, LibraryMonitor, LoggerFactory, ProviderManager);
             serviceCollection.AddSingleton(CollectionManager);
             serviceCollection.AddSingleton(CollectionManager);
@@ -784,7 +784,8 @@ namespace Emby.Server.Implementations
             NotificationManager = new NotificationManager(LoggerFactory, UserManager, ServerConfigurationManager);
             NotificationManager = new NotificationManager(LoggerFactory, UserManager, ServerConfigurationManager);
             serviceCollection.AddSingleton(NotificationManager);
             serviceCollection.AddSingleton(NotificationManager);
 
 
-            serviceCollection.AddSingleton<IDeviceDiscovery>(new DeviceDiscovery(LoggerFactory, ServerConfigurationManager, SocketFactory));
+            serviceCollection.AddSingleton<IDeviceDiscovery>(
+                new DeviceDiscovery(LoggerFactory, ServerConfigurationManager, SocketFactory));
 
 
             ChapterManager = new ChapterManager(LibraryManager, LoggerFactory, ServerConfigurationManager, ItemRepository);
             ChapterManager = new ChapterManager(LibraryManager, LoggerFactory, ServerConfigurationManager, ItemRepository);
             serviceCollection.AddSingleton(ChapterManager);
             serviceCollection.AddSingleton(ChapterManager);
@@ -1381,9 +1382,6 @@ namespace Emby.Server.Implementations
                 }
                 }
             }
             }
 
 
-            // Gets all plugin assemblies by first reading all bytes of the .dll and calling Assembly.Load against that
-            // This will prevent the .dll file from getting locked, and allow us to replace it when needed
-
             // Include composable parts in the Api assembly
             // Include composable parts in the Api assembly
             yield return typeof(ApiEntryPoint).Assembly;
             yield return typeof(ApiEntryPoint).Assembly;