Browse Source

Merge pull request #1095 from Bond-009/fix1077

Add AppConfig to the DI service collection
Vasily 6 năm trước cách đây
mục cha
commit
0220309ea7
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Emby.Server.Implementations/ApplicationHost.cs

+ 2 - 0
Emby.Server.Implementations/ApplicationHost.cs

@@ -700,6 +700,8 @@ namespace Emby.Server.Implementations
 
             serviceCollection.AddSingleton<IApplicationPaths>(ApplicationPaths);
 
+            serviceCollection.AddSingleton<IConfiguration>(_configuration);
+
             serviceCollection.AddSingleton(JsonSerializer);
 
             serviceCollection.AddSingleton(LoggerFactory);