AzureConfig.Program.CatalogIndexExists C# (CSharp) Метод

CatalogIndexExists() приватный статический Метод

private static CatalogIndexExists ( ) : bool
Результат 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;
        }