Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20019

Re: Re: Re: Re: Re: Re: How to create array of arguments for Unmanage/Remanage? (C#)

$
0
0

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.


Viewing all articles
Browse latest Browse all 20019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>