Beispiel #1
0
        /// <summary>
        /// Start the asynchronous query request operation.
        /// </summary>
        /// <param name="domain">The domain to get records for.</param>
        /// <param name="client">The current domain name client reference.</param>
        /// <param name="callback">The asynchronous call back method.</param>
        /// <param name="state">The state object value.</param>
        public AsyncDomainNameServerRequest(string domain,
                                            DomainNameClient client, AsyncCallback callback, object state)
            : base(callback, state)
        {
            _client = client;
            _domain = domain;

            ThreadPool.QueueUserWorkItem(new WaitCallback(AsyncDomainNameServerThread1));
            Thread.Sleep(20);
        }
Beispiel #2
0
        /// <summary>
        /// Start the asynchronous query request operation.
        /// </summary>
        /// <param name="domain">The domain to get records for.</param>
        /// <param name="dnsType">The dns record type to return.</param>
        /// <param name="dnsClass">The class to search in.</param>
        /// <param name="client">The current domain name client reference.</param>
        /// <param name="callback">The asynchronous call back method.</param>
        /// <param name="state">The state object value.</param>
        public AsyncDnsQueryRequest(string domain, Nequeo.Net.Dns.DnsType dnsType,
                                    Nequeo.Net.Dns.DnsClass dnsClass, DomainNameClient client, AsyncCallback callback, object state)
            : base(callback, state)
        {
            _client   = client;
            _domain   = domain;
            _dnsType  = dnsType;
            _dnsClass = dnsClass;

            ThreadPool.QueueUserWorkItem(new WaitCallback(AsyncQueryRequestThread1));
            Thread.Sleep(20);
        }