Microsoft.Web.Administration.JexusServerManager.VerifyAsync C# (CSharp) Метод

VerifyAsync() приватный Метод

private VerifyAsync ( string path ) : Task
path string
Результат Task
        internal override async Task<bool> VerifyAsync(string path)
        {
            using (var client = GetClient())
            {
                HttpResponseMessage response = await client.PostAsJsonAsync("api/site/verify", path);
                if (response.IsSuccessStatusCode)
                {
                    var succeeded = (bool)await response.Content.ReadAsAsync(typeof(bool));
                    return succeeded;
                }

                return false;
            }
        }