/// <summary> /// Initializes a new instance of the <see cref="ConnectionManagerService"/> class. /// </summary> /// <param name="dlnaServerManager">The <see cref="IDlnaServerManager"/> instance.</param> /// <param name="dlna">The <see cref="IDlnaProfileManager"/> for use with the <see cref="ConnectionManagerService"/> instance.</param> /// <param name="logger">The <see cref="ILogger"/> for use with the <see cref="ConnectionManagerService"/> instance.</param> /// <param name="httpClientFactory">The <see cref="IHttpClientFactory"/> for use with the <see cref="ConnectionManagerService"/> instance.</param> public ConnectionManagerService( IDlnaServerManager dlnaServerManager, IDlnaProfileManager dlna, ILogger logger, IHttpClientFactory httpClientFactory) : base(dlnaServerManager, logger, httpClientFactory) => _dlna = dlna;
/// <summary> /// Initializes a new instance of the <see cref="ContentDirectoryService"/> class. /// </summary> /// <param name="dlnaServerManager">The <see cref="IDlnaServerManager"/> to use in the <see cref="ContentDirectoryService"/> instance.</param> /// <param name="dlna">The <see cref="IDlnaProfileManager"/> to use in the <see cref="ContentDirectoryService"/> instance.</param> /// <param name="userDataManager">The <see cref="IUserDataManager"/> to use in the <see cref="ContentDirectoryService"/> instance.</param> /// <param name="imageProcessor">The <see cref="IImageProcessor"/> to use in the <see cref="ContentDirectoryService"/> instance.</param> /// <param name="libraryManager">The <see cref="ILibraryManager"/> to use in the <see cref="ContentDirectoryService"/> instance.</param> /// <param name="userManager">The <see cref="IUserManager"/> to use in the <see cref="ContentDirectoryService"/> instance.</param> /// <param name="logger">The <see cref="ILogger"/> to use in the <see cref="ContentDirectoryService"/> instance.</param> /// <param name="httpClient">The <see cref="IHttpClientFactory"/> to use in the <see cref="ContentDirectoryService"/> instance.</param> /// <param name="localization">The <see cref="ILocalizationManager"/> to use in the <see cref="ContentDirectoryService"/> instance.</param> /// <param name="mediaSourceManager">The <see cref="IMediaSourceManager"/> to use in the <see cref="ContentDirectoryService"/> instance.</param> /// <param name="userViewManager">The <see cref="IUserViewManager"/> to use in the <see cref="ContentDirectoryService"/> instance.</param> /// <param name="mediaEncoder">The <see cref="IMediaEncoder"/> to use in the <see cref="ContentDirectoryService"/> instance.</param> /// <param name="tvSeriesManager">The <see cref="ITVSeriesManager"/> to use in the <see cref="ContentDirectoryService"/> instance.</param> public ContentDirectoryService( IDlnaServerManager dlnaServerManager, IDlnaProfileManager dlna, IUserDataManager userDataManager, IImageProcessor imageProcessor, ILibraryManager libraryManager, IUserManager userManager, ILogger logger, IHttpClientFactory httpClient, ILocalizationManager localization, IMediaSourceManager mediaSourceManager, IUserViewManager userViewManager, IMediaEncoder mediaEncoder, ITVSeriesManager tvSeriesManager) : base(dlnaServerManager, logger, httpClient) { _dlna = dlna; _userDataManager = userDataManager; _imageProcessor = imageProcessor; _libraryManager = libraryManager; _userManager = userManager; _localization = localization; _mediaSourceManager = mediaSourceManager; _userViewManager = userViewManager; _mediaEncoder = mediaEncoder; _tvSeriesManager = tvSeriesManager; }
/// <summary> /// Initializes a new instance of the <see cref="SsdpServerPublisher"/> class. /// </summary> /// <param name="dlnaServerManager">The <see cref="IDlnaServerManager"/> instance.</param> /// <param name="configuration">The <see cref="IConfigurationManager"/> instance.</param> /// <param name="logger">The <see cref="ILogger"/> instance.</param> /// <param name="loggerFactory">The <see cref="ILoggerFacory"/> instance.</param> /// <param name="networkManager">The <see cref="INetworkManager"/> instance.</param> public SsdpServerPublisher( IDlnaServerManager dlnaServerManager, IConfigurationManager configuration, ILogger logger, ILoggerFactory loggerFactory, INetworkManager networkManager) { _dlnaServerManager = dlnaServerManager; _networkManager = networkManager; _logger = logger; _devices = new List <SsdpRootDevice>(); _readOnlyDevices = new ReadOnlyCollection <SsdpRootDevice>(_devices); _recentSearchRequests = new Dictionary <string, SearchRequest>(StringComparer.OrdinalIgnoreCase); _random = new Random(); Server = SsdpServer.GetOrCreateInstance( configuration, loggerFactory, networkManager.GetInternalBindAddresses(), networkManager); _dlnaServerManager.ConfigurationChanged += UpdateConfiguration; _networkManager.NetworkChanged += NetworkChanged; }
/// <summary> /// Initializes a new instance of the <see cref="DlnaServerController"/> class. /// </summary> /// <param name="dlnaServerManager">Instance of the <see cref="IDlnaServerManager"/> interface.</param> public DlnaServerController(IDlnaServerManager dlnaServerManager) => _dlnaServerManager = dlnaServerManager;
/// <summary> /// Initializes a new instance of the <see cref="MediaReceiverRegistrarService"/> class. /// </summary> /// <param name="dlnaServerManager">The <see cref="IDlnaServerManager"/> for use with the <see cref="MediaReceiverRegistrarService"/> instance.</param> /// <param name="logger">The <see cref="ILogger"/> for use with the <see cref="MediaReceiverRegistrarService"/> instance.</param> /// <param name="httpClientFactory">The <see cref="IHttpClientFactory"/> for use with the <see cref="MediaReceiverRegistrarService"/> instance.</param> public MediaReceiverRegistrarService(IDlnaServerManager dlnaServerManager, ILogger logger, IHttpClientFactory httpClientFactory) : base(dlnaServerManager, logger, httpClientFactory) { }
/// <summary> /// Initializes a new instance of the <see cref="ControlHandler"/> class. /// </summary> /// <param name="dlnaServerManager">The <see cref="IDlnaServerManager"/> for use with the <see cref="ControlHandler"/> instance.</param> /// <param name="logger">The <see cref="ILogger"/> for use with the <see cref="ControlHandler"/> instance.</param> public ControlHandler(IDlnaServerManager dlnaServerManager, ILogger logger) : base(dlnaServerManager, logger) { }
/// <summary> /// Initializes a new instance of the <see cref="DlnaLauncher"/> class. /// </summary> /// <param name="manager">A <see cref="IDlnaServerManager"/> instance.</param> public DlnaLauncher(IDlnaServerManager manager) => _manager = manager;
/// <summary> /// Initializes a new instance of the <see cref="BaseControlHandler"/> class. /// </summary> /// <param name="dlnaServerManager">The <see cref="IDlnaServerManager"/>.</param> /// <param name="logger">The <see cref="ILogger"/>.</param> protected BaseControlHandler(IDlnaServerManager dlnaServerManager, ILogger logger) { Logger = logger; DlnaServerManager = dlnaServerManager; }
/// <summary> /// Initializes a new instance of the <see cref="BaseService"/> class. /// </summary> /// <param name="dlnaServerManager">The <see cref="IDlnaServerManager"/> instance.</param> /// <param name="logger">The <see cref="ILogger"/> instance.</param> /// <param name="httpClientFactory">The <see cref="IHttpClientFactory"/> instance.</param> protected BaseService(IDlnaServerManager dlnaServerManager, ILogger logger, IHttpClientFactory httpClientFactory) { Logger = logger; EventManager = new DlnaEventManager(logger, httpClientFactory); DlnaServerManager = dlnaServerManager; }
/// <summary> /// Initializes a new instance of the <see cref="ControlHandler"/> class. /// </summary> /// <param name="dlnaServerManager">The <see cref="IDlnaServerManager"/> for use with the <see cref="ControlHandler"/> instance.</param> /// <param name="logger">The <see cref="ILogger"/> for use with the <see cref="ControlHandler"/> instance.</param> /// <param name="profile">The <see cref="DeviceProfile"/> for use with the <see cref="ControlHandler"/> instance.</param> public ControlHandler(IDlnaServerManager dlnaServerManager, ILogger logger, DeviceProfile profile) : base(dlnaServerManager, logger) =>