diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-11-20 15:46:18 -0500 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2016-11-20 15:46:18 -0500 |
| commit | a6d535a3f1cb64cb2a72dd9c39a880a9fe21a080 (patch) | |
| tree | 5ab9692a235da682be2adec22f4a037915e16a83 | |
| parent | 24dc91160d33e9b1ea8edd1f4262b8ecb14db930 (diff) | |
update mac project
| -rw-r--r-- | MediaBrowser.Server.Mac/Emby.Server.Mac.csproj | 1 | ||||
| -rw-r--r-- | MediaBrowser.Server.Mac/MacAppHost.cs | 14 | ||||
| -rw-r--r-- | MediaBrowser.Server.Mac/Native/DbConnector.cs | 24 |
3 files changed, 8 insertions, 31 deletions
diff --git a/MediaBrowser.Server.Mac/Emby.Server.Mac.csproj b/MediaBrowser.Server.Mac/Emby.Server.Mac.csproj index 9df2df2ff..494b89149 100644 --- a/MediaBrowser.Server.Mac/Emby.Server.Mac.csproj +++ b/MediaBrowser.Server.Mac/Emby.Server.Mac.csproj @@ -147,7 +147,6 @@ </Compile>
<Compile Include="Main.cs" />
<Compile Include="MenuBarIcon.cs" />
- <Compile Include="Native\DbConnector.cs" />
<Compile Include="MacAppHost.cs" />
<Compile Include="Native\MonoFileSystem.cs" />
<Compile Include="Native\PowerManagement.cs" />
diff --git a/MediaBrowser.Server.Mac/MacAppHost.cs b/MediaBrowser.Server.Mac/MacAppHost.cs index 342829c10..78bca03c8 100644 --- a/MediaBrowser.Server.Mac/MacAppHost.cs +++ b/MediaBrowser.Server.Mac/MacAppHost.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Reflection; using Emby.Server.Core; -using Emby.Server.Core.Data; using Emby.Server.Implementations; using Emby.Server.Implementations.FFMpeg; using MediaBrowser.Model.IO; @@ -35,6 +34,14 @@ namespace MediaBrowser.Server.Mac } } + protected override bool SupportsDualModeSockets + { + get + { + return true; + } + } + protected override FFMpegInstallInfo GetFfmpegInstallInfo() { var info = new FFMpegInstallInfo(); @@ -95,11 +102,6 @@ namespace MediaBrowser.Server.Mac throw new NotImplementedException(); } - protected override IDbConnector GetDbConnector() - { - return new DbConnector(Logger); - } - protected override void ConfigureAutoRunInternal(bool autorun) { throw new NotImplementedException(); diff --git a/MediaBrowser.Server.Mac/Native/DbConnector.cs b/MediaBrowser.Server.Mac/Native/DbConnector.cs deleted file mode 100644 index 1ef9d2388..000000000 --- a/MediaBrowser.Server.Mac/Native/DbConnector.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Data; -using System.Data.SQLite; -using System.Threading.Tasks; -using MediaBrowser.Model.Logging; -using Emby.Server.Core.Data; - -namespace MediaBrowser.Server.Mac -{ - public class DbConnector : IDbConnector - { - private readonly ILogger _logger; - - public DbConnector(ILogger logger) - { - _logger = logger; - } - - public Task<IDbConnection> Connect(string dbPath, bool isReadOnly, bool enablePooling = false, int? cacheSize = null) - { - return SqliteExtensions.ConnectToDb(dbPath, isReadOnly, enablePooling, cacheSize, _logger); - } - } -}
\ No newline at end of file |
