diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-12-17 03:30:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-17 03:30:26 -0500 |
| commit | 799fbd6f32790e9289c3a5a20ff0d90f2de0cca2 (patch) | |
| tree | f86dd9ea91f3d01d3a963d8c36e087c3ec539ede /Emby.Server.Core | |
| parent | 12f46d961b9b3b3857e1c2beadd4464f0e4e19cc (diff) | |
| parent | cc73830cd6df7049281df6e43615096a5b47ccb4 (diff) | |
Merge pull request #2346 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Core')
| -rw-r--r-- | Emby.Server.Core/ApplicationHost.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Emby.Server.Core/ApplicationHost.cs b/Emby.Server.Core/ApplicationHost.cs index 3b3313169..a0a7416e7 100644 --- a/Emby.Server.Core/ApplicationHost.cs +++ b/Emby.Server.Core/ApplicationHost.cs @@ -548,6 +548,8 @@ namespace Emby.Server.Core RegisterSingleInstance(UserDataManager); UserRepository = GetUserRepository(); + // This is only needed for disposal purposes. If removing this, make sure to have the manager handle disposing it + RegisterSingleInstance(UserRepository); var displayPreferencesRepo = new SqliteDisplayPreferencesRepository(LogManager.GetLogger("SqliteDisplayPreferencesRepository"), JsonSerializer, ApplicationPaths, MemoryStreamFactory); DisplayPreferencesRepository = displayPreferencesRepo; @@ -678,6 +680,8 @@ namespace Emby.Server.Core var sharingRepo = new SharingRepository(LogManager.GetLogger("SharingRepository"), ApplicationPaths); sharingRepo.Initialize(); + // This is only needed for disposal purposes. If removing this, make sure to have the manager handle disposing it + RegisterSingleInstance<ISharingRepository>(sharingRepo); RegisterSingleInstance<ISharingManager>(new SharingManager(sharingRepo, ServerConfigurationManager, LibraryManager, this)); var activityLogRepo = GetActivityLogRepository(); |
