Beispiel #1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="MediaServer" /> class.
        /// </summary>
        /// <param name="udn">
        ///     A universally-unique identifier for the device.
        /// </param>
        /// <param name="contentDirectoryService">
        ///     A <see cref="IContentDirectoryService"/> to use for managing the media content.
        /// </param>
        /// <param name="loggerFactory">
        ///     The <see cref="ILoggerFactory"/> to use for logging the debug information.
        /// </param>
        /// <exception cref="ArgumentNullException">
        ///     <paramref name="udn"/> is <c>null</c> or <see cref="string.Empty"/> -OR-
        ///     <paramref name="contentDirectoryService"/> is <c>null</c> -OR-
        ///     <paramref name="logManager"/> is <c>null</c>.
        /// </exception>
        public MediaServer(string udn, IContentDirectoryService contentDirectoryService, ILoggerFactory loggerFactory)
            : base(udn, loggerFactory)
        {
            contentDirectoryService.EnsureNotNull("contentDirectoryService");

            this.contentDirectoryService = contentDirectoryService;
        }
Beispiel #2
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="MediaServer" /> class.
        /// </summary>
        /// <param name="udn">
        ///     A universally-unique identifier for the device.
        /// </param>
        /// <param name="contentDirectoryService">
        ///     A <see cref="IContentDirectoryService"/> to use for managing the media content.
        /// </param>
        /// <exception cref="ArgumentNullException">
        ///     <paramref name="udn"/> is <c>null</c> or <see cref="string.Empty"/> -OR-
        ///     <paramref name="contentDirectoryService"/> is <c>null</c>.
        /// </exception>
        public MediaServer(string udn, IContentDirectoryService contentDirectoryService)
            : base(udn)
        {
            contentDirectoryService.EnsureNotNull("contentDirectoryService");

            this.contentDirectoryService = contentDirectoryService;
        }
 public SonosController(IAvTransportService avTransportService,
                        IRenderingControlService renderingControlService,
                        IContentDirectoryService contentDirectoryService)
 {
     _avTransportService      = avTransportService;
     _renderingControlService = renderingControlService;
     _contentDirectoryService = contentDirectoryService;
 }