AzureConfig.Program.CatalogIndexExists C# (CSharp) Method

CatalogIndexExists() private static method

private static CatalogIndexExists ( ) : bool
return bool
        private static bool CatalogIndexExists()
        {
            Uri uri = new Uri(_serviceUri, "/indexes/invoicetransactions");
            HttpResponseMessage response = AzureSearchHelper.SendSearchRequest(_httpClient, HttpMethod.Get, uri);
            if (response.StatusCode == HttpStatusCode.NotFound)
            {
                return false;
            }
            response.EnsureSuccessStatusCode();
            return true;
        }