diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-10-04 00:23:11 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-10-04 00:23:11 -0400 |
| commit | 078277ebc29bd749045e5d109024d9d08aa8edea (patch) | |
| tree | 9d47f711b41522ac0b58519cb3fa838f9d4f1fd7 /MediaBrowser.ServerApplication/MainStartup.cs | |
| parent | 8ad702060ea31a3862598056509a2597f6a2b639 (diff) | |
continue file system rework
Diffstat (limited to 'MediaBrowser.ServerApplication/MainStartup.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/MainStartup.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MediaBrowser.ServerApplication/MainStartup.cs b/MediaBrowser.ServerApplication/MainStartup.cs index d7b8b2aed..a051cea67 100644 --- a/MediaBrowser.ServerApplication/MainStartup.cs +++ b/MediaBrowser.ServerApplication/MainStartup.cs @@ -17,6 +17,8 @@ using System.ServiceProcess; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; +using CommonIO.Windows; +using MediaBrowser.Server.Implementations.Logging; namespace MediaBrowser.ServerApplication { @@ -201,7 +203,8 @@ namespace MediaBrowser.ServerApplication /// <param name="options">The options.</param> private static void RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, bool runService, StartupOptions options) { - var fileSystem = new NativeFileSystem(logManager.GetLogger("FileSystem"), false); + var fileSystem = new WindowsFileSystem(new PatternsLogger(logManager.GetLogger("FileSystem"))); + fileSystem.AddShortcutHandler(new MbLinkShortcutHandler(fileSystem)); var nativeApp = new WindowsApp(fileSystem) { |
