public void Load(string pluginFolder) { if (_isLoaded) { throw new InvalidOperationException(); } _pluginDirectory = new DirectoryInfo(pluginFolder); if (!_pluginDirectory.Exists) { _pluginDirectory.Create(); } var pluginDataFile = new FileInfo(Path.Combine(_pluginDirectory.FullName, "PluginInfo.json")); MusicStreamingPluginManager = new MusicStreamingPluginManager(); }
public MusicDataManager() { _databaseFile = new FileInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Hurricane", "database.sqlite")); Images = new ImagesProvider(); Artists = new ArtistProvider(Images); Albums = new AlbumsProvider(Artists); Tracks = new TrackProvider(Artists, Images, Albums); Playlists = new PlaylistProvider(Tracks); UserData = new UserDataProvider(); LastfmApi = new LastfmApi(Artists); MusicManager = new MusicManager(); MusicManager.TrackChanged += MusicManager_TrackChanged; MusicManager.NewTrackOpened += MusicManager_NewTrackOpened; MusicStreamingPluginManager = new MusicStreamingPluginManager(); }