private async void OnProcessCommand() { CachedNumbers.AddIfNotExists(NumberString); Result = null; IsRunning = true; stopwatch = Stopwatch.StartNew(); Result = await factorizationController.ProcessAsync(BigInteger.Parse(NumberString), SelectedProcessorCount.GetValueOrDefault()); stopwatch.Stop(); TimeElapsed = stopwatch.Elapsed; IsRunning = false; }