jellyfin/MediaBrowser.Server.Mono/Networking/NetworkManager.cs

50 lines
1.6 KiB
C#
Raw Normal View History

2016-10-29 13:02:21 -07:00
using MediaBrowser.Common.Net;
using MediaBrowser.Model.IO;
2014-08-22 10:26:58 -07:00
using MediaBrowser.Model.Logging;
using MediaBrowser.Model.Net;
using System.Collections.Generic;
2016-10-29 13:02:21 -07:00
using Emby.Common.Implementations.Networking;
namespace MediaBrowser.Server.Mono.Networking
{
/// <summary>
/// Class NetUtils
/// </summary>
public class NetworkManager : BaseNetworkManager, INetworkManager
{
2014-08-22 10:26:58 -07:00
public NetworkManager(ILogger logger)
: base(logger)
{
}
/// <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 00:02:05 -07:00
return new List<NetworkShare>();
}
/// <summary>
2014-11-13 23:27:10 -07:00
/// Gets available devices within the domain
/// </summary>
2014-11-13 23:27:10 -07:00
/// <returns>PC's in the Domain</returns>
2015-01-19 00:02:05 -07:00
public IEnumerable<FileSystemEntryInfo> GetNetworkDevices()
{
2015-01-19 00:02:05 -07:00
return new List<FileSystemEntryInfo>();
}
/// <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);
}
}
}