void InitializeValidationService(IEnvironmentModel environmentModel) { if (environmentModel != null && environmentModel.Connection != null && environmentModel.Connection.ServerEvents != null) { _validationService = new DesignValidationService(environmentModel.Connection.ServerEvents); _validationService.Subscribe(UniqueID, (a => UpdateLastValidationMemo(a))); } }
public void InitializeValidationService(IServer server) { if (server?.Connection?.ServerEvents != null) { _validationService = new DesignValidationService(server.Connection.ServerEvents); _validationService.Subscribe(_serviceDesignerViewModel.UniqueID, a => _serviceDesignerViewModel.MappingManager.UpdateLastValidationMemo(a)); } }