Improve main code flow

Improved the way how some parts of the code depend on eachother
Fixed some style issues
This commit is contained in:
Bond_009
2019-06-09 23:51:52 +02:00
parent e3a3aebbf6
commit aa30227545
4 changed files with 92 additions and 90 deletions

View File

@@ -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;