diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2019-06-21 23:33:37 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-21 23:33:37 -0700 |
| commit | 1b2621cd30eb22ce6fbc8b94175ce8f5fce0330f (patch) | |
| tree | ef176427d50a1796aebbce944dd4d62da5f9bc44 /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | dbc2cda9d41eb9dca6f635f3498c14a4e09a84e6 (diff) | |
| parent | 253e72f66720c2f590c443f8347e2187f4f36db0 (diff) | |
Merge pull request #1454 from Bond-009/webresource
Simplify file serving code
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index fc4e88878..62cc6ec47 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -232,11 +232,6 @@ namespace Emby.Server.Implementations /// <value>The server configuration manager.</value> public IServerConfigurationManager ServerConfigurationManager => (IServerConfigurationManager)ConfigurationManager; - protected virtual IResourceFileManager CreateResourceFileManager() - { - return new ResourceFileManager(HttpResultFactory, LoggerFactory, FileSystemManager); - } - /// <summary> /// Gets or sets the user manager. /// </summary> @@ -887,7 +882,7 @@ namespace Emby.Server.Implementations SubtitleEncoder = new MediaBrowser.MediaEncoding.Subtitles.SubtitleEncoder(LibraryManager, LoggerFactory, ApplicationPaths, FileSystemManager, MediaEncoder, JsonSerializer, HttpClient, MediaSourceManager, ProcessFactory); serviceCollection.AddSingleton(SubtitleEncoder); - serviceCollection.AddSingleton(CreateResourceFileManager()); + serviceCollection.AddSingleton(typeof(IResourceFileManager), typeof(ResourceFileManager)); displayPreferencesRepo.Initialize(); |
