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

50 lines
1.6 KiB
C#
Raw Normal View History

using MediaBrowser.Common.Implementations.Networking;
using MediaBrowser.Common.Net;
using MediaBrowser.Model.IO;
2014-08-22 17:26:58 +00:00
using MediaBrowser.Model.Logging;
using MediaBrowser.Model.Net;
using System.Collections.Generic;
namespace MediaBrowser.Server.Mono.Networking
{
/// <summary>
/// Class NetUtils
/// </summary>
public class NetworkManager : BaseNetworkManager, INetworkManager
{
2014-08-22 17:26:58 +00: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 07:02:05 +00:00
return new List<NetworkShare>();
}
/// <summary>
2014-11-14 06:27:10 +00:00
/// Gets available devices within the domain
/// </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()
{
2015-01-19 07:02:05 +00: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);
}
}
}