BitMaker.Miner.PoolConfigurationElement.UrlValidator C# (CSharp) Method

UrlValidator() public static method

public static UrlValidator ( object value ) : void
value object
return 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