Ejemplo n.º 1
0
 public LibraryService(
     SQLiteConnection sqLiteConnection,
     IDispatcherUtility dispatcherUtility)
 {
     _sqLiteConnection  = sqLiteConnection;
     _dispatcherUtility = dispatcherUtility;
 }
Ejemplo n.º 2
0
 public LibraryService(
     SQLiteConnection sqLiteConnection,
     IDispatcherUtility dispatcherUtility)
 {
     _sqLiteConnection = sqLiteConnection;
     _dispatcherUtility = dispatcherUtility;
 }
Ejemplo n.º 3
0
 public StartingViewModel(ITorrentStreamService torrentStreamService, INavigationService navigationService,
                          IDispatcherUtility dispatcherUtility)
 {
     _torrentStreamService = torrentStreamService;
     _navigationService    = navigationService;
     _dispatcherUtility    = dispatcherUtility;
 }
Ejemplo n.º 4
0
 public StartingViewModel(ITorrentStreamService torrentStreamService, INavigationService navigationService,
     IDispatcherUtility dispatcherUtility)
 {
     _torrentStreamService = torrentStreamService;
     _navigationService = navigationService;
     _dispatcherUtility = dispatcherUtility;
 }
Ejemplo n.º 5
0
 public PlayerService(ISettingsUtility settingsUtility, IDispatcherUtility dispatcherUtility,
                      IMatchEngineService matchEngineService, IConverter <WebSong, Track> webSongConverter)
 {
     _settingsUtility    = settingsUtility;
     _dispatcherUtility  = dispatcherUtility;
     _matchEngineService = matchEngineService;
     _webSongConverter   = webSongConverter;
     // Setup the initialization lock
     _backgroundAudioTaskStarted = new AutoResetEvent(false);
     _settingsUtility.Write(ApplicationSettingsConstants.AppState, AppState.Active);
     PlaybackQueue = new OptimizedObservableCollection <QueueTrack>();
 }
Ejemplo n.º 6
0
 public DownloadService(
     ILibraryService libraryService,
     IDispatcherUtility dispatcherUtility,
     IAppSettingsUtility appSettingsUtility,
     IPlayerService playerService)
 {
     _libraryService = libraryService;
     _dispatcherUtility = dispatcherUtility;
     _appSettingsUtility = appSettingsUtility;
     _playerService = playerService;
     ActiveDownloads = new ObservableCollection<Track>();
 }
Ejemplo n.º 7
0
 public DownloadService(
     ILibraryService libraryService,
     IDispatcherUtility dispatcherUtility,
     IAppSettingsUtility appSettingsUtility,
     IPlayerService playerService)
 {
     _libraryService     = libraryService;
     _dispatcherUtility  = dispatcherUtility;
     _appSettingsUtility = appSettingsUtility;
     _playerService      = playerService;
     ActiveDownloads     = new ObservableCollection <Track>();
 }
Ejemplo n.º 8
0
 public PlayerService(ISettingsUtility settingsUtility, IDispatcherUtility dispatcherUtility,
     IMatchEngineService matchEngineService, IConverter<WebSong, Track> webSongConverter)
 {
     _settingsUtility = settingsUtility;
     _dispatcherUtility = dispatcherUtility;
     _matchEngineService = matchEngineService;
     _webSongConverter = webSongConverter;
     // Setup the initialization lock
     _backgroundAudioTaskStarted = new AutoResetEvent(false);
     _settingsUtility.Write(ApplicationSettingsConstants.AppState, AppState.Active);
     PlaybackQueue = new OptimizedObservableCollection<QueueTrack>();
 }
Ejemplo n.º 9
0
        public LibraryCollectionService(ILibraryService libraryService, IDispatcherUtility dispatcherUtility)
        {
            _libraryService    = libraryService;
            _dispatcherUtility = dispatcherUtility;

            if (_libraryService.IsLoaded)
            {
                Configure();
            }
            else
            {
                _libraryService.Loaded += LibraryServiceOnLoaded;
            }
        }
Ejemplo n.º 10
0
 public void Attach(DependencyObject associatedObject)
 {
     _dispatcher = WindowWrapper.Current().Dispatcher;
     BootStrapper.BackRequested += BootStrapper_BackRequested;
 }
Ejemplo n.º 11
0
 public void Attach(DependencyObject associatedObject)
 {
     _dispatcher = WindowWrapper.Current().Dispatcher;
     BootStrapper.BackRequested += BootStrapper_BackRequested;
 }