public DynamicHostnameGenerator(string prefix, string hostname, string digestAlgorithm, IBaseEncoding encoding) { this.prefix = prefix; this.hostname = hostname; this.digestAlgorithm = digestAlgorithm; this.encoding = encoding; }
/// <summary> /// Initiate a new instance of BDXL lookup functionality. /// </summary> /// <param name="prefix">Value attached in front of calculated hash.</param> /// <param name="hostname">Hostname used as base for lookup.</param> /// <param name="digestAlgorithm">Algorithm used for generation of hostname.</param> /// <param name="encoding">Encoding of hash for hostname.</param> /// <param name="sml">Custom DNS Server</param> private BdxlLocator(string prefix, string hostname, string digestAlgorithm, IBaseEncoding encoding, string sml) { this.sml = sml; this.hostnameGenerator = new DynamicHostnameGenerator(prefix, hostname, digestAlgorithm, encoding); }