#567 - native shortcuts

pull/702/head
Luke Pulverenti 11 years ago
parent be7918e5f6
commit ee912d4113

@ -170,6 +170,8 @@ namespace MediaBrowser.ServerApplication
private Task<IHttpServer> _httpServerCreationTask; private Task<IHttpServer> _httpServerCreationTask;
private IFileSystem FileSystemManager { get; set; }
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ApplicationHost"/> class. /// Initializes a new instance of the <see cref="ApplicationHost"/> class.
/// </summary> /// </summary>
@ -247,8 +249,8 @@ namespace MediaBrowser.ServerApplication
RegisterSingleInstance<IBlurayExaminer>(() => new BdInfoExaminer()); RegisterSingleInstance<IBlurayExaminer>(() => new BdInfoExaminer());
var fileSystemManager = FileSystemFactory.CreateFileSystemManager(); FileSystemManager = FileSystemFactory.CreateFileSystemManager();
RegisterSingleInstance(fileSystemManager); RegisterSingleInstance(FileSystemManager);
var mediaEncoderTask = RegisterMediaEncoder(); var mediaEncoderTask = RegisterMediaEncoder();
@ -267,10 +269,10 @@ namespace MediaBrowser.ServerApplication
UserManager = new UserManager(Logger, ServerConfigurationManager, UserRepository); UserManager = new UserManager(Logger, ServerConfigurationManager, UserRepository);
RegisterSingleInstance(UserManager); RegisterSingleInstance(UserManager);
LibraryManager = new LibraryManager(Logger, TaskManager, UserManager, ServerConfigurationManager, UserDataManager, () => DirectoryWatchers, fileSystemManager); LibraryManager = new LibraryManager(Logger, TaskManager, UserManager, ServerConfigurationManager, UserDataManager, () => DirectoryWatchers, FileSystemManager);
RegisterSingleInstance(LibraryManager); RegisterSingleInstance(LibraryManager);
DirectoryWatchers = new DirectoryWatchers(LogManager, TaskManager, LibraryManager, ServerConfigurationManager, fileSystemManager); DirectoryWatchers = new DirectoryWatchers(LogManager, TaskManager, LibraryManager, ServerConfigurationManager, FileSystemManager);
RegisterSingleInstance(DirectoryWatchers); RegisterSingleInstance(DirectoryWatchers);
ProviderManager = new ProviderManager(HttpClient, ServerConfigurationManager, DirectoryWatchers, LogManager, LibraryManager); ProviderManager = new ProviderManager(HttpClient, ServerConfigurationManager, DirectoryWatchers, LogManager, LibraryManager);
@ -416,6 +418,7 @@ namespace MediaBrowser.ServerApplication
User.UserManager = UserManager; User.UserManager = UserManager;
LocalizedStrings.ApplicationPaths = ApplicationPaths; LocalizedStrings.ApplicationPaths = ApplicationPaths;
Folder.UserManager = UserManager; Folder.UserManager = UserManager;
BaseItem.FileSystem = FileSystemManager;
} }
/// <summary> /// <summary>

Loading…
Cancel
Save