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(); }
public void VerifyConnection() { _socketTester.VerifyConnection(); }