diff options
| author | Bond_009 <bond.009@outlook.com> | 2023-04-14 13:43:56 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2023-04-21 14:04:37 +0200 |
| commit | 858dadcdd1caadb5fa8cc13a02eb227098f39c3c (patch) | |
| tree | 07a89401de306953c6899008ea59ccea090c132b /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | 20cf27f637af745827348b4853d1e91bdf29eb38 (diff) | |
POC sql connection pool
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 080c44829..7969577bc 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -627,6 +627,9 @@ namespace Emby.Server.Implementations } } + ((SqliteItemRepository)Resolve<IItemRepository>()).Initialize(); + ((SqliteUserDataRepository)Resolve<IUserDataRepository>()).Initialize(); + var localizationManager = (LocalizationManager)Resolve<ILocalizationManager>(); await localizationManager.LoadAll().ConfigureAwait(false); @@ -634,9 +637,6 @@ namespace Emby.Server.Implementations SetStaticProperties(); - var userDataRepo = (SqliteUserDataRepository)Resolve<IUserDataRepository>(); - ((SqliteItemRepository)Resolve<IItemRepository>()).Initialize(userDataRepo, Resolve<IUserManager>()); - FindParts(); } |
