INetworkManager.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using MediaBrowser.Model.Net;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Common.Net
  4. {
  5. public interface INetworkManager
  6. {
  7. /// <summary>
  8. /// Gets the machine's local ip address
  9. /// </summary>
  10. /// <returns>IPAddress.</returns>
  11. IEnumerable<string> GetLocalIpAddresses();
  12. /// <summary>
  13. /// Gets a random port number that is currently available
  14. /// </summary>
  15. /// <returns>System.Int32.</returns>
  16. int GetRandomUnusedPort();
  17. /// <summary>
  18. /// Returns MAC Address from first Network Card in Computer
  19. /// </summary>
  20. /// <returns>[string] MAC Address</returns>
  21. string GetMacAddress();
  22. /// <summary>
  23. /// Gets the network shares.
  24. /// </summary>
  25. /// <param name="path">The path.</param>
  26. /// <returns>IEnumerable{NetworkShare}.</returns>
  27. IEnumerable<NetworkShare> GetNetworkShares(string path);
  28. /// <summary>
  29. /// Gets available devices within the domain
  30. /// </summary>
  31. /// <returns>PC's in the Domain</returns>
  32. IEnumerable<string> GetNetworkDevices();
  33. }
  34. }