public void CheckVersions(ServiceDesignerViewModel serviceDesignerViewModel) { if (serviceDesignerViewModel.ValidationMemoManager.LastValidationMemo != null && serviceDesignerViewModel.ValidationMemoManager.LastValidationMemo.Errors.Any(a => a.Message.Contains("This service will only execute when the server is online."))) { serviceDesignerViewModel.ValidationMemoManager.RemoveErrors(serviceDesignerViewModel.ValidationMemoManager.LastValidationMemo.Errors.Where( a => a.Message.Contains("This service will only execute when the server is online.")).ToList()); serviceDesignerViewModel.ValidationMemoManager.UpdateWorstError(); } var webAct = ActivityFactory.CreateWebActivity(serviceDesignerViewModel.NewModel, serviceDesignerViewModel.NewModel, serviceDesignerViewModel.ServiceName); var newMapping = MappingFactory.CreateModel(webAct, OnMappingCollectionChanged); if (newMapping.GetInputString(DataMappingViewModel.Inputs) != DataMappingViewModel.GetInputString(DataMappingViewModel.Inputs) || newMapping.GetOutputString(DataMappingViewModel.Outputs) != DataMappingViewModel.GetOutputString(DataMappingViewModel.Outputs)) { serviceDesignerViewModel.ValidationMemoManager.UpdateLastValidationMemoWithVersionChanged(); _resourcesUpdated = true; serviceDesignerViewModel.ValidationMemoManager.SetVersionsDifferent(true); } }
internal MappingManager(ServiceDesignerViewModel serviceDesignerViewModel) { _serviceDesignerViewModel = serviceDesignerViewModel; }
internal ValidationMemoManager(ServiceDesignerViewModel serviceDesignerViewModel) { _serviceDesignerViewModel = serviceDesignerViewModel; }