SsdpDevicePublisher.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using MediaBrowser.Model.Net;
  6. using MediaBrowser.Model.Threading;
  7. using Rssdp.Infrastructure;
  8. namespace Rssdp
  9. {
  10. /// <summary>
  11. /// Allows publishing devices both as notification and responses to search requests.
  12. /// </summary>
  13. /// <remarks>
  14. /// This is the 'server' part of the system. You add your devices to an instance of this class so clients can find them.
  15. /// </remarks>
  16. public class SsdpDevicePublisher : SsdpDevicePublisherBase
  17. {
  18. #region Constructors
  19. /// <summary>
  20. /// Default constructor.
  21. /// </summary>
  22. /// <remarks>
  23. /// <para>Uses the default <see cref="ISsdpCommunicationsServer"/> implementation and network settings for Windows and the SSDP specification.</para>
  24. /// </remarks>
  25. [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.")]
  26. public SsdpDevicePublisher(ISsdpCommunicationsServer communicationsServer, ITimerFactory timerFactory, string osName, string osVersion)
  27. : base(communicationsServer, timerFactory, osName, osVersion)
  28. {
  29. }
  30. #endregion
  31. }
  32. }