diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-06-09 23:51:52 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-06-09 23:51:52 +0200 |
| commit | aa3022754527759d307138f606136561b4151d2a (patch) | |
| tree | 4eb861fb8d060939707bdc551ce6702822686392 /Emby.Server.Implementations/IO | |
| parent | e3a3aebbf69855f527b7150304d83ca9abc955ff (diff) | |
Improve main code flow
Improved the way how some parts of the code depend on eachother
Fixed some style issues
Diffstat (limited to 'Emby.Server.Implementations/IO')
| -rw-r--r-- | Emby.Server.Implementations/IO/ManagedFileSystem.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/IO/ManagedFileSystem.cs b/Emby.Server.Implementations/IO/ManagedFileSystem.cs index 7c2ea50e2..8517abed6 100644 --- a/Emby.Server.Implementations/IO/ManagedFileSystem.cs +++ b/Emby.Server.Implementations/IO/ManagedFileSystem.cs @@ -20,16 +20,14 @@ namespace Emby.Server.Implementations.IO protected ILogger Logger; private readonly List<IShortcutHandler> _shortcutHandlers = new List<IShortcutHandler>(); - private readonly string _tempPath; - private readonly bool _isEnvironmentCaseInsensitive; public ManagedFileSystem( - ILoggerFactory loggerFactory, + ILogger<ManagedFileSystem> logger, IApplicationPaths applicationPaths) { - Logger = loggerFactory.CreateLogger("FileSystem"); + Logger = logger; _tempPath = applicationPaths.TempDirectory; _isEnvironmentCaseInsensitive = OperatingSystem.Id == OperatingSystemId.Windows; |
