Пример #1
0
        /// <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;
        }
Пример #2
0
        /// <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);
        }
Пример #3
0
        /// <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>
        /// <param name="encoding">The encoding used to read and write strings.</param>
        public WhoisServerVisitor(Encoding encoding)
        {
            WhoisServerLookup = new WhoisServerLookup(encoding);

            CurrentEncoding = encoding;
        }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WhoisServerVisitor"/> class.
 /// </summary>
 public WhoisServerVisitor()
 {
     WhoisServerLookup = new WhoisServerLookup();
 }