コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DownloadVisitor"/> class.
        /// </summary>
        /// <param name="encoding">The encoding used to read and write strings.</param>
        public DownloadVisitor(Encoding encoding)
        {
            // You should use an IoC container to do this.
            TcpReaderFactory = new TcpReaderFactory();

            CurrentEncoding = encoding;
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DownloadVisitor"/> class.
        /// </summary>
        /// <param name="encoding">The encoding used to read and write strings.</param>
        public DownloadVisitor(Encoding encoding)
        {
            // You should use an IoC container to do this.
            TcpReaderFactory = new TcpReaderFactory();

            CurrentEncoding = encoding;
        }
コード例 #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExpandResultsVisitor"/> class.
        /// </summary>
        /// <param name="encoding">The encoding used to read and write strings.</param>
        public ExpandResultsVisitor(Encoding encoding)
        {
            TcpReaderFactory = new TcpReaderFactory();

            Encoding = encoding;
        }
コード例 #4
0
ファイル: DownloadVisitor.cs プロジェクト: BerndK/whois
 /// <summary>
 /// Initializes a new instance of the <see cref="DownloadVisitor"/> class.
 /// </summary>
 public DownloadVisitor()
 {
     TcpReaderFactory = new TcpReaderFactory();
 }
コード例 #5
0
ファイル: IanaServerLookup.cs プロジェクト: BerndK/whois
 /// <summary>
 /// Initializes a new instance of the <see cref="IanaServerLookup"/> class.
 /// </summary>
 public IanaServerLookup()
 {
     TcpReaderFactory = new TcpReaderFactory();
 }
コード例 #6
0
ファイル: DownloadVisitor.cs プロジェクト: vnisor/whois-1
        /// <summary>
        /// Initializes a new instance of the <see cref="DownloadVisitor"/> class.
        /// </summary>
        /// <param name="encoding">The encoding used to read and write strings.</param>
        public DownloadVisitor(Encoding encoding)
        {
            TcpReaderFactory = new TcpReaderFactory();

            Encoding = encoding;
        }
コード例 #7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExpandResultsVisitor"/> class.
        /// </summary>
        /// <param name="encoding">The encoding used to read and write strings.</param>
        public ExpandResultsVisitor(Encoding encoding)
        {
            TcpReaderFactory = new TcpReaderFactory();

            CurrentEncoding = encoding;
        }