public override int GetHashCode()
 {
     if (!ClientId.IsNullOrWhiteSpace())
     {
         return(ClientId.GetHashCode());
     }
     return(base.GetHashCode());
 }
        public bool IsValid()
        {
            bool valid = !ClientId.IsNullOrWhiteSpace() ||
                         !Authority.IsNullOrWhiteSpace();

            if (valid && !Authority.StartsWith("https://", StringComparison.OrdinalIgnoreCase))
            {
                throw new UserFriendlyException("Property name \"Authority\" must start with \"https://\"");
            }

            return(valid);
        }
 public override bool Equals(object obj)
 {
     if (obj == null ||
         ClientId.IsNullOrWhiteSpace())
     {
         return(false);
     }
     if (obj is RouteClientWhite clientWhite)
     {
         return(clientWhite.ClientId.Equals(ClientId));
     }
     return(false);
 }
 public bool IsValid()
 {
     return(!ClientId.IsNullOrWhiteSpace() && !ClientSecret.IsNullOrWhiteSpace());
 }