Ejemplo n.º 1
0
 public SonosController(IAvTransportService avTransportService,
                        IRenderingControlService renderingControlService,
                        IContentDirectoryService contentDirectoryService)
 {
     _avTransportService      = avTransportService;
     _renderingControlService = renderingControlService;
     _contentDirectoryService = contentDirectoryService;
 }
Ejemplo n.º 2
0
		/// <summary>
		///     Initializes a new instance of the <see cref="MediaRenderer"/> class.
		/// </summary>
		/// <param name="udn">
		///     A universally-unique identifier for the device.
		/// </param>
		/// <param name="avTransportService">
		///     A <see cref="IAvTransportService"/> to use for controlling the transport of media streams.
		/// </param>
		/// <exception cref="ArgumentNullException">
		///     <paramref name="udn"/> is <c>null</c> or <see cref="string.Empty"/> -OR-
		///     <paramref name="avTransportService"/> is <c>null</c>.
		/// </exception>
		public MediaRenderer(string udn, IAvTransportService avTransportService)
			: base(udn)
		{
			avTransportService.EnsureNotNull("avTransportService");

			this.avTransportService = avTransportService;

			this.Initialize();
		}
Ejemplo n.º 3
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="MediaRenderer"/> class.
        /// </summary>
        /// <param name="udn">
        ///     A universally-unique identifier for the device.
        /// </param>
        /// <param name="avTransportService">
        ///     A <see cref="IAvTransportService"/> to use for controlling the transport of media streams.
        /// </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="avTransportService"/> is <c>null</c> -OR-
        ///     <paramref name="logManager"/> is <c>null</c>.
        /// </exception>
        public MediaRenderer(string udn, IAvTransportService avTransportService, ILoggerFactory loggerFactory)
            : base(udn, loggerFactory)
        {
            avTransportService.EnsureNotNull("avTransportService");

            this.avTransportService = avTransportService;

            this.Initialize();
        }
Ejemplo n.º 4
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="MediaRenderer"/> class.
        /// </summary>
        /// <param name="udn">
        ///     A universally-unique identifier for the device.
        /// </param>
        /// <param name="avTransportService">
        ///     A <see cref="IAvTransportService"/> to use for controlling the transport of media streams.
        /// </param>
        /// <exception cref="ArgumentNullException">
        ///     <paramref name="udn"/> is <c>null</c> or <see cref="string.Empty"/> -OR-
        ///     <paramref name="avTransportService"/> is <c>null</c>.
        /// </exception>
        public MediaRenderer(string udn, IAvTransportService avTransportService)
            : base(udn)
        {
            avTransportService.EnsureNotNull("avTransportService");

            this.avTransportService = avTransportService;

            this.Initialize();
        }