private void CheckFhirConnectionDetails(string source, List <string> errors, DicomWebConnectionDetails connection) { if (!Uri.IsWellFormedUriString(connection.Uri, UriKind.Absolute)) { errors.Add($"The provided URI '{connection.Uri}' in `{source}` is not well formed."); } }
private static void CheckDicomWebConnectionDetails(string source, List <string> errors, DicomWebConnectionDetails connection) { if (connection.AuthType != ConnectionAuthType.None && string.IsNullOrWhiteSpace(connection.AuthId)) { errors.Add($"One of the '{source}' has authType of '{connection.AuthType:F}' but does not include a valid value for 'authId'"); } if (!Uri.IsWellFormedUriString(connection.Uri, UriKind.Absolute)) { errors.Add($"The provided URI '{connection.Uri}' is not well formed."); } }