Example #1
0
 public virtual IEnumerable <ValidationResult> Validate(ValidationContext validationContext)
 {
     if (this.Scopes != null)
     {
         foreach (var scope in this.Scopes)
         {
             if (UriUtilities.GetValidUri(scope) == null)
             {
                 yield return(new ValidationResult("Configuration contains scopes but they are not in a valid form", new string[] { nameof(this.Scopes) }));
             }
         }
     }
 }