public void StartAnalysis()
        {
            var task = new Task<StoreReport>(RunAnalysis);
            task.ContinueWith(t => t != null ? (Report = new StoreAnalysisModel(t.Result)) : null,CancellationToken.None, TaskContinuationOptions.OnlyOnRanToCompletion, TaskScheduler.FromCurrentSynchronizationContext());
            task.ContinueWith(t => AnalyzerException = t.Exception,CancellationToken.None, TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.FromCurrentSynchronizationContext());
            task.Start();

        }
        public void StartAnalysis()
        {
            var task = new Task <StoreReport>(RunAnalysis);

            task.ContinueWith(t => t != null ? (Report = new StoreAnalysisModel(t.Result)) : null, CancellationToken.None, TaskContinuationOptions.OnlyOnRanToCompletion, TaskScheduler.FromCurrentSynchronizationContext());
            task.ContinueWith(t => AnalyzerException = t.Exception, CancellationToken.None, TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.FromCurrentSynchronizationContext());
            task.Start();
        }
 public StoreAnalyzerViewModel(StoreReport report) 
 {
     Report = new StoreAnalysisModel(report);
 }
 public StoreAnalyzerViewModel(StoreReport report)
 {
     Report = new StoreAnalysisModel(report);
 }