/// <summary> /// /// </summary> public static void BuildApplicationResult(WSConnection connection, Application application) { //Build Quality Indicators using (ApplicationBLL applicationBLL = new ApplicationBLL(connection, application)) { Task taskQualityIndicators = new Task(() => applicationBLL.SetQualityIndicators()); taskQualityIndicators.Start(); //Build Quality Indicators Task taskSizingMeasure = new Task(() => applicationBLL.SetSizingMeasure()); taskSizingMeasure.Start(); taskQualityIndicators.Wait(); taskSizingMeasure.Wait(); } }
/// <summary> /// /// </summary> static public void BuildApplicationResult(WSConnection connection, Application application) { //Build Quality Indicators using (ApplicationBLL applicationBLL = new ApplicationBLL(connection, application)) { Task taskQualityIndicators = new Task(() => applicationBLL.SetQualityIndicators()); taskQualityIndicators.Start(); //Build Quality Indicators Task taskSizingMeasure = new Task(() => applicationBLL.SetSizingMeasure()); taskSizingMeasure.Start(); taskQualityIndicators.Wait(); taskSizingMeasure.Wait(); } }
/// <summary> /// /// </summary> /// <param name="connection"></param> /// <param name="application"></param> /// <returns></returns> private static void SetSnapshots(WSConnection connection, Application application) { using (ApplicationBLL applicationBLL = new ApplicationBLL(connection, application)) { applicationBLL.SetSnapshots(); } }
/// <summary> /// Implement Command that Load the current snapshots list /// </summary> void ExecuteLoadSnapshotsCommand(object parameter) { if (SelectedApplication != null) { using (ApplicationBLL applicationBLL = new ApplicationBLL(ActiveConnection, SelectedApplication)) { applicationBLL.SetSnapshots(); Snaphosts = SelectedApplication.Snapshots.OrderByDescending(_ => _.Annotation.Date.DateSnapShot).ToList(); } } else Snaphosts = null; }