/// <summary> /// Visits the specified record. /// </summary> /// <param name="record">The record.</param> /// <returns></returns> public WhoisRecord Visit(WhoisRecord record) { var server = WhoisServerLookup.Lookup(record.Domain); // TODO: Validation on server record.Server = server; return record; }
/// <summary> /// Visits the specified record. /// </summary> /// <param name="record">The record.</param> /// <returns></returns> public WhoisRecord Visit(WhoisRecord record) { record.Server = WhoisServerLookup.Lookup(record.Domain); return(record); }
/// <summary> /// Initializes a new instance of the <see cref="WhoisServerVisitor"/> class. /// </summary> /// <param name="encoding">The encoding used to read and write strings.</param> public WhoisServerVisitor(Encoding encoding) { WhoisServerLookup = new WhoisServerLookup(encoding); CurrentEncoding = encoding; }
/// <summary> /// Initializes a new instance of the <see cref="WhoisServerVisitor"/> class. /// </summary> public WhoisServerVisitor() { WhoisServerLookup = new WhoisServerLookup(); }