Exemple #1
0
        private NetworkSpeedModel(Database database)
        {
            _resultsService = SpeedTestResultsService.Create(database);

            Graph = NetworkSpeedGraphModel.Create(_resultsService);
            OnPropertyChanged(nameof(Graph));

            _speedTestWorker            = new SpeedTestWorker(_resultsService);
            _speedTestWorker.NewResult += UpdateResults;
        }
 public static NetworkSpeedGraphModel Create(SpeedTestResultsService resultsService) =>
 _instance ?? (_instance = new NetworkSpeedGraphModel(resultsService));