T,
Something my code printed.
// ACTUALLY MAKE THE CALL TO UNMANAGE THE NODE HERE var modNodeStateResult = client.SendAsync(request).Result; // Could modNodeStateResult be null? string modManagedStateResult = string.Empty; if (modNodeStateResult.IsSuccessStatusCode) { modManagedStateResult = modNodeStateResult.Content.ToString(); Console.WriteLine("{0} Node. NodeID: {1}.", (takeNodesDown ? "Unmanage" : "Remanage"), d.NodeID); } else { // ERROR Console.WriteLine("Problem retrieving Node data for NodeID: {0}.", d.NodeID); Console.WriteLine("{0} ({1})", (int)modNodeStateResult.StatusCode, modNodeStateResult.ReasonPhrase); }
// hehe, LOVE it, the syntax highlighting.