diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-18 15:43:19 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-18 15:43:19 -0500 |
| commit | c6f1bd93fc3c6aab16d5ba2c0ceeddb9303d029d (patch) | |
| tree | 34ad5ebfc2f5cd4eb485b2c6cfaa5aced4f8cc3e /Emby.Server.Core/ApplicationHost.cs | |
| parent | 13abfbc3b84079f43dcf1da7731c3360192c7c96 (diff) | |
rework organizer repository
Diffstat (limited to 'Emby.Server.Core/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Core/ApplicationHost.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Emby.Server.Core/ApplicationHost.cs b/Emby.Server.Core/ApplicationHost.cs index 914344b66..6a0029db1 100644 --- a/Emby.Server.Core/ApplicationHost.cs +++ b/Emby.Server.Core/ApplicationHost.cs @@ -562,7 +562,7 @@ namespace Emby.Server.Core ItemRepository = itemRepo; RegisterSingleInstance(ItemRepository); - FileOrganizationRepository = await GetFileOrganizationRepository().ConfigureAwait(false); + FileOrganizationRepository = GetFileOrganizationRepository(); RegisterSingleInstance(FileOrganizationRepository); AuthenticationRepository = await GetAuthenticationRepository().ConfigureAwait(false); @@ -817,11 +817,11 @@ namespace Emby.Server.Core /// Gets the file organization repository. /// </summary> /// <returns>Task{IUserRepository}.</returns> - private async Task<IFileOrganizationRepository> GetFileOrganizationRepository() + private IFileOrganizationRepository GetFileOrganizationRepository() { - var repo = new SqliteFileOrganizationRepository(LogManager, ServerConfigurationManager.ApplicationPaths, GetDbConnector()); + var repo = new SqliteFileOrganizationRepository(LogManager.GetLogger("SqliteFileOrganizationRepository"), ServerConfigurationManager.ApplicationPaths); - await repo.Initialize().ConfigureAwait(false); + repo.Initialize(); return repo; } |
