2016-10-29 20:02:21 +00:00
|
|
|
|
using MediaBrowser.Common.Net;
|
2014-01-01 18:26:31 +00:00
|
|
|
|
using MediaBrowser.Model.IO;
|
2014-08-22 17:26:58 +00:00
|
|
|
|
using MediaBrowser.Model.Logging;
|
2013-10-05 17:13:32 +00:00
|
|
|
|
using MediaBrowser.Model.Net;
|
|
|
|
|
using System.Collections.Generic;
|
2016-10-29 20:02:21 +00:00
|
|
|
|
using Emby.Common.Implementations.Networking;
|
2013-10-05 17:13:32 +00:00
|
|
|
|
|
2014-11-09 18:24:57 +00:00
|
|
|
|
namespace MediaBrowser.Server.Mono.Networking
|
2013-10-05 17:13:32 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class NetUtils
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class NetworkManager : BaseNetworkManager, INetworkManager
|
|
|
|
|
{
|
2014-08-22 17:26:58 +00:00
|
|
|
|
public NetworkManager(ILogger logger)
|
|
|
|
|
: base(logger)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2013-10-05 17:13:32 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the network shares.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="path">The path.</param>
|
|
|
|
|
/// <returns>IEnumerable{NetworkShare}.</returns>
|
|
|
|
|
public IEnumerable<NetworkShare> GetNetworkShares(string path)
|
|
|
|
|
{
|
2015-01-19 07:02:05 +00:00
|
|
|
|
return new List<NetworkShare>();
|
2013-10-05 17:13:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2014-11-14 06:27:10 +00:00
|
|
|
|
/// Gets available devices within the domain
|
2013-10-05 17:13:32 +00:00
|
|
|
|
/// </summary>
|
2014-11-14 06:27:10 +00:00
|
|
|
|
/// <returns>PC's in the Domain</returns>
|
2015-01-19 07:02:05 +00:00
|
|
|
|
public IEnumerable<FileSystemEntryInfo> GetNetworkDevices()
|
2013-10-05 17:13:32 +00:00
|
|
|
|
{
|
2015-01-19 07:02:05 +00:00
|
|
|
|
return new List<FileSystemEntryInfo>();
|
2013-10-05 17:13:32 +00:00
|
|
|
|
}
|
2015-01-18 21:44:35 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Generates a self signed certificate at the locatation specified by <paramref name="certificatePath"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="certificatePath">The path to generate the certificate.</param>
|
|
|
|
|
/// <param name="hostname">The common name for the certificate.</param>
|
|
|
|
|
public void GenerateSelfSignedSslCertificate(string certificatePath, string hostname)
|
|
|
|
|
{
|
|
|
|
|
CertificateGenerator.CreateSelfSignCertificatePfx(certificatePath, hostname, Logger);
|
|
|
|
|
}
|
2013-10-05 17:13:32 +00:00
|
|
|
|
}
|
|
|
|
|
}
|