diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-04-21 15:49:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-21 15:49:17 +0200 |
| commit | d5163b4167d362f6cb8d6301c64ae0e26069302a (patch) | |
| tree | c558f75d815a030054b63638ec9c1882d203f315 /Emby.Server.Implementations | |
| parent | 24103d0953968b3b4b1018fdaf14e2beff0bb031 (diff) | |
| parent | 499bac51854cf880beb4add835babf8abd8eb738 (diff) | |
Merge pull request #5877 from Bond-009/circ1
EncodingHelper: Fix circular dependency
Diffstat (limited to 'Emby.Server.Implementations')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 0512adf10..1ed74210d 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -610,9 +610,8 @@ namespace Emby.Server.Implementations // TODO: Refactor to eliminate the circular dependency here so that Lazy<T> isn't required ServiceCollection.AddTransient(provider => new Lazy<IDtoService>(provider.GetRequiredService<IDtoService>)); - // TODO: Refactor to eliminate the circular dependency here so that Lazy<T> isn't required - ServiceCollection.AddTransient(provider => new Lazy<EncodingHelper>(provider.GetRequiredService<EncodingHelper>)); ServiceCollection.AddSingleton<IMediaEncoder, MediaBrowser.MediaEncoding.Encoder.MediaEncoder>(); + ServiceCollection.AddSingleton<EncodingHelper>(); // TODO: Refactor to eliminate the circular dependencies here so that Lazy<T> isn't required ServiceCollection.AddTransient(provider => new Lazy<ILibraryMonitor>(provider.GetRequiredService<ILibraryMonitor>)); |
