Ejemplo n.º 1
0
 /// <summary>
 /// Manages HTTP connection with Solr
 /// </summary>
 /// <param name="serverURL">URL to Solr</param>
 public SolrConnection(string serverURL)
 {
     ServerURL = serverURL;
     Timeout = -1;
     Cache = new NullCache();
     HttpWebRequestFactory = new HttpWebRequestFactory();
 }
Ejemplo n.º 2
0
        public void RunAuthorization()
        {
            var duoRestApiService = new RestApiService(IntegrationKey, SecretKey, Host);

            var adapter = new HttpWebRequestFactory();
            duoRestApiService.QueryDuoApi(adapter, "https", Path, HttpWebRequestMethod.POST, GetQueryValues("*****@*****.**"));
        }