diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-09-25 17:43:20 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-10-08 20:59:53 +0200 |
| commit | e553eba31e9f0e05effc30417ee53c02d63304bd (patch) | |
| tree | 7d96ff17db0b3e520bd5a8b9c14784429910fcdf /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | ac9dfa8e93106d907bbf78fe2350adfa47c76cec (diff) | |
Use System.Text.Json api
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 24f59478c..4dbd2fe12 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -742,12 +742,11 @@ namespace Emby.Server.Implementations _displayPreferencesRepository = new SqliteDisplayPreferencesRepository( LoggerFactory.CreateLogger<SqliteDisplayPreferencesRepository>(), - JsonSerializer, ApplicationPaths, FileSystemManager); serviceCollection.AddSingleton<IDisplayPreferencesRepository>(_displayPreferencesRepository); - ItemRepository = new SqliteItemRepository(ServerConfigurationManager, this, JsonSerializer, LoggerFactory, LocalizationManager); + ItemRepository = new SqliteItemRepository(ServerConfigurationManager, this, LoggerFactory.CreateLogger<SqliteItemRepository>(), LocalizationManager); serviceCollection.AddSingleton<IItemRepository>(ItemRepository); AuthenticationRepository = GetAuthenticationRepository(); @@ -948,8 +947,7 @@ namespace Emby.Server.Implementations { var repo = new SqliteUserRepository( LoggerFactory.CreateLogger<SqliteUserRepository>(), - ApplicationPaths, - JsonSerializer); + ApplicationPaths); repo.Initialize(); |
