diff options
| author | Patrick Barron <barronpm@gmail.com> | 2023-10-11 11:08:19 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2023-10-11 11:08:19 -0400 |
| commit | e0b089a37573a02898e179e738d44039df9432bf (patch) | |
| tree | 156310cd1a0958e96b95687a10857c43af3bc80f /Jellyfin.Api/Controllers/DlnaServerController.cs | |
| parent | effc3d488c2e0df04189b18b8e47905b1f641f24 (diff) | |
Use DI for ConnectionManagerService
Diffstat (limited to 'Jellyfin.Api/Controllers/DlnaServerController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/DlnaServerController.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/DlnaServerController.cs b/Jellyfin.Api/Controllers/DlnaServerController.cs index 178ba6d6e..2d52097c0 100644 --- a/Jellyfin.Api/Controllers/DlnaServerController.cs +++ b/Jellyfin.Api/Controllers/DlnaServerController.cs @@ -34,11 +34,15 @@ public class DlnaServerController : BaseJellyfinApiController /// </summary> /// <param name="dlnaManager">Instance of the <see cref="IDlnaManager"/> interface.</param> /// <param name="contentDirectory">Instance of the <see cref="IContentDirectory"/> interface.</param> - public DlnaServerController(IDlnaManager dlnaManager, IContentDirectory contentDirectory) + /// <param name="connectionManager">Instance of the <see cref="IConnectionManager"/> interface.</param> + public DlnaServerController( + IDlnaManager dlnaManager, + IContentDirectory contentDirectory, + IConnectionManager connectionManager) { _dlnaManager = dlnaManager; _contentDirectory = contentDirectory; - _connectionManager = DlnaEntryPoint.Current.ConnectionManager; + _connectionManager = connectionManager; _mediaReceiverRegistrar = DlnaEntryPoint.Current.MediaReceiverRegistrar; } |
