Esempio n. 1
0
        public ConfigurationPanelViewModel(
            PersistenceManager persistenceManager,
            IVersionProvider versionProvider,
            ITrackRepository trackRepository)
        {
            _versionProvider = versionProvider;
            _trackRepository = trackRepository;
            _userSettings    = persistenceManager?.UserSettingsModel ??
                               throw new ArgumentNullException(nameof(persistenceManager));

            _socketTester = new SocketTester(persistenceManager);
            _socketTester.ConnectionChangeListener += status =>
            {
                ServiceStatus = status;
                OnPropertyChanged(nameof(ServiceStatus));
            };

            _socketTester.VerifyConnection();
        }
Esempio n. 2
0
 public void VerifyConnection()
 {
     _socketTester.VerifyConnection();
 }