BitMaker.Miner.PoolConfigurationElement.UrlValidator C# (CSharp) Méthode

UrlValidator() public static méthode

public static UrlValidator ( object value ) : void
value object
Résultat void
        public static void UrlValidator(object value)
        {
            var url = (Uri)value;
            if (!url.IsAbsoluteUri)
                throw new ArgumentException("Url of pool must be an absolute uri.");
            else if (url.Scheme != "http" && url.Scheme != "https")
                throw new ArgumentException("Url of pool must be either http or https.");
        }
PoolConfigurationElement