Example #1
0
        public TcpDnsResolver(DnsResolverOptions options, IStreamSocketFactory streamSocketFactory, IPEndpoint dnsServerEndpoint, Random random = null)
            : base(options, dnsServerEndpoint, random)
        {
            if (streamSocketFactory == null)
            {
                throw new ArgumentNullException("streamSocketFactory");
            }

            m_streamSocketFactory = streamSocketFactory;
        }
Example #2
0
        public TcpDnsResolver(DnsResolverOptions options, IStreamSocketFactory streamSocketFactory, IPEndpoint dnsServerEndpoint, Random random = null)
            : base(options, dnsServerEndpoint, random)
        {
            if (streamSocketFactory == null)
            {
                throw new ArgumentNullException("streamSocketFactory");
            }

            m_streamSocketFactory = streamSocketFactory;
        }