Move service initializations into correct method
This commit is contained in:
parent
e9e12b8eb9
commit
92b0d40ad4
|
@ -851,6 +851,16 @@ namespace Emby.Server.Implementations
|
|||
serviceCollection.AddSingleton<EncodingHelper>();
|
||||
|
||||
serviceCollection.AddSingleton(typeof(IAttachmentExtractor), typeof(MediaBrowser.MediaEncoding.Attachments.AttachmentExtractor));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create services registered with the service container that need to be initialized at application startup.
|
||||
/// </summary>
|
||||
public void InitializeServices()
|
||||
{
|
||||
HttpServer = Resolve<IHttpServer>();
|
||||
AuthService = Resolve<IAuthService>();
|
||||
SubtitleEncoder = Resolve<ISubtitleEncoder>();
|
||||
|
||||
_displayPreferencesRepository.Initialize();
|
||||
|
||||
|
@ -865,15 +875,6 @@ namespace Emby.Server.Implementations
|
|||
((LibraryManager)LibraryManager).ItemRepository = ItemRepository;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create services registered with the service container that need to be initialized at application startup.
|
||||
/// </summary>
|
||||
public void InitializeServices()
|
||||
{
|
||||
HttpServer = Resolve<IHttpServer>();
|
||||
SubtitleEncoder = Resolve<ISubtitleEncoder>();
|
||||
}
|
||||
|
||||
public static void LogEnvironmentInfo(ILogger logger, IApplicationPaths appPaths)
|
||||
{
|
||||
// Distinct these to prevent users from reporting problems that aren't actually problems
|
||||
|
|
Loading…
Reference in New Issue
Block a user