Microsoft.Web.Administration.JexusServerManager.ByeAsync C# (CSharp) Method

ByeAsync() public method

public ByeAsync ( ) : Task
return Task
        public async Task<string> ByeAsync()
        {
            using (var client = GetClient())
            {
                HttpResponseMessage response = await client.PostAsJsonAsync("api/server/bye", Environment.MachineName);
                if (response.IsSuccessStatusCode)
                {
                    var succeeded = (string)await response.Content.ReadAsAsync(typeof(string));
                    return succeeded;
                }

                return string.Empty;
            }
        }