SsdpDevicePublisher.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using MediaBrowser.Model.Net;
  5. using MediaBrowser.Model.Threading;
  6. using Rssdp.Infrastructure;
  7. namespace Rssdp
  8. {
  9. /// <summary>
  10. /// Allows publishing devices both as notification and responses to search requests.
  11. /// </summary>
  12. /// <remarks>
  13. /// This is the 'server' part of the system. You add your devices to an instance of this class so clients can find them.
  14. /// </remarks>
  15. public class SsdpDevicePublisher : SsdpDevicePublisherBase
  16. {
  17. #region Constructors
  18. /// <summary>
  19. /// Default constructor.
  20. /// </summary>
  21. /// <remarks>
  22. /// <para>Uses the default <see cref="ISsdpCommunicationsServer"/> implementation and network settings for Windows and the SSDP specification.</para>
  23. /// </remarks>
  24. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "No way to do this here, and we don't want to dispose it except in the (rare) case of an exception anyway.")]
  25. public SsdpDevicePublisher(ISsdpCommunicationsServer communicationsServer, ITimerFactory timerFactory, string osName, string osVersion)
  26. : base(communicationsServer, timerFactory, osName, osVersion)
  27. {
  28. }
  29. #endregion
  30. }
  31. }