diff options
Diffstat (limited to 'MediaBrowser.Server.Mac/Native')
| -rw-r--r-- | MediaBrowser.Server.Mac/Native/NativeApp.cs | 46 | ||||
| -rw-r--r-- | MediaBrowser.Server.Mac/Native/NetworkManager.cs | 50 |
2 files changed, 0 insertions, 96 deletions
diff --git a/MediaBrowser.Server.Mac/Native/NativeApp.cs b/MediaBrowser.Server.Mac/Native/NativeApp.cs deleted file mode 100644 index 59fa92dd18..0000000000 --- a/MediaBrowser.Server.Mac/Native/NativeApp.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; -using MediaBrowser.Server.Startup.Common; -using MediaBrowser.Model.Logging; - -namespace MediaBrowser.Server.Mac -{ - /// <summary> - /// Class NativeApp - /// </summary> - public class NativeApp : BaseMonoApp - { - public NativeApp(ILogger logger) - : base(logger) - { - } - - /// <summary> - /// Shutdowns this instance. - /// </summary> - public override void Shutdown() - { - MainClass.Shutdown(); - } - - /// <summary> - /// Determines whether this instance [can self restart]. - /// </summary> - /// <value><c>true</c> if this instance can self restart; otherwise, <c>false</c>.</value> - public override bool CanSelfRestart - { - get - { - return true; - } - } - - /// <summary> - /// Restarts this instance. - /// </summary> - public override void Restart(StartupOptions options) - { - MainClass.Restart(); - } - } -} - diff --git a/MediaBrowser.Server.Mac/Native/NetworkManager.cs b/MediaBrowser.Server.Mac/Native/NetworkManager.cs deleted file mode 100644 index 959ac6774a..0000000000 --- a/MediaBrowser.Server.Mac/Native/NetworkManager.cs +++ /dev/null @@ -1,50 +0,0 @@ -using MediaBrowser.Common.Implementations.Networking; -using MediaBrowser.Common.Net; -using MediaBrowser.Model.IO; -using MediaBrowser.Model.Logging; -using MediaBrowser.Model.Net; -using System.Collections.Generic; -using MediaBrowser.Server.Mono.Networking; - -namespace MediaBrowser.Server.Mac -{ - /// <summary> - /// Class NetUtils - /// </summary> - public class NetworkManager : BaseNetworkManager, INetworkManager - { - 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) - { - return new List<NetworkShare> (); - } - - /// <summary> - /// Gets available devices within the domain - /// </summary> - /// <returns>PC's in the Domain</returns> - public IEnumerable<FileSystemEntryInfo> GetNetworkDevices() - { - 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); - } - } -} |
