protected virtual void ValidateTransport() { if (TransportPackage.ZipName.Equals("MSMQ", StringComparison.OrdinalIgnoreCase)) { MsmqConfigValidator.Validate(); } }
public void Validate(Func <PathInfo, bool> promptToProceed) { if (TransportPackage.Equals("MSMQ", StringComparison.OrdinalIgnoreCase)) { try { MsmqConfigValidator.Validate(); } catch (EngineValidationException ex) { ReportCard.Errors.Add(ex.Message); } } try { PortValidator.Validate(this); } catch (EngineValidationException ex) { ReportCard.Errors.Add(ex.Message); } try { DatabaseMaintenancePortValidator.Validate(this); } catch (EngineValidationException ex) { ReportCard.Errors.Add(ex.Message); } try { ReportCard.CancelRequested = new PathsValidator(this).RunValidation(true, promptToProceed); } catch (EngineValidationException ex) { ReportCard.Errors.Add(ex.Message); } try { ServiceControlQueueNameValidator.Validate(this); } catch (EngineValidationException ex) { ReportCard.Errors.Add(ex.Message); } try { CheckForConflictingUrlAclReservations(); } catch (EngineValidationException ex) { ReportCard.Errors.Add(ex.Message); } try { ServiceAccountValidation.Validate(this); ConnectionStringValidator.Validate(this); } catch (IdentityNotMappedException) { ReportCard.Errors.Add("The service account specified does not exist"); } catch (EngineValidationException ex) { ReportCard.Errors.Add(ex.Message); } }