/// <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(); }
/// <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(); }