NetworkManager.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using MediaBrowser.Common.Implementations.Networking;
  2. using MediaBrowser.Common.Net;
  3. using MediaBrowser.Model.IO;
  4. using MediaBrowser.Model.Logging;
  5. using MediaBrowser.Model.Net;
  6. using System.Collections.Generic;
  7. using MediaBrowser.Server.Mono.Networking;
  8. namespace MediaBrowser.Server.Mac
  9. {
  10. /// <summary>
  11. /// Class NetUtils
  12. /// </summary>
  13. public class NetworkManager : BaseNetworkManager, INetworkManager
  14. {
  15. public NetworkManager(ILogger logger)
  16. : base(logger)
  17. {
  18. }
  19. /// <summary>
  20. /// Gets the network shares.
  21. /// </summary>
  22. /// <param name="path">The path.</param>
  23. /// <returns>IEnumerable{NetworkShare}.</returns>
  24. public IEnumerable<NetworkShare> GetNetworkShares(string path)
  25. {
  26. return new List<NetworkShare> ();
  27. }
  28. /// <summary>
  29. /// Gets available devices within the domain
  30. /// </summary>
  31. /// <returns>PC's in the Domain</returns>
  32. public IEnumerable<FileSystemEntryInfo> GetNetworkDevices()
  33. {
  34. return new List<FileSystemEntryInfo> ();
  35. }
  36. /// <summary>
  37. /// Generates a self signed certificate at the locatation specified by <paramref name="certificatePath"/>.
  38. /// </summary>
  39. /// <param name="certificatePath">The path to generate the certificate.</param>
  40. /// <param name="hostname">The common name for the certificate.</param>
  41. public void GenerateSelfSignedSslCertificate(string certificatePath, string hostname)
  42. {
  43. CertificateGenerator.CreateSelfSignCertificatePfx(certificatePath, hostname, Logger);
  44. }
  45. }
  46. }