ANH_WCF_Example_Client.Form1.ServerCallback_StatusReceived C# (CSharp) Method

ServerCallback_StatusReceived() private method

private ServerCallback_StatusReceived ( object sender, ServerStatusEventArgs e ) : void
sender object
e ServerStatusEventArgs
return void
        void ServerCallback_StatusReceived(object sender, ServerStatusEventArgs e)
        {
            if (e.StatusList == null)
                return;

            listBox1.Items.Add("Got statuses for " + e.StatusList.Count + " Servers");
            foreach (IServerStatus iss in e.StatusList)
            {
                listBox1.Items.Add(iss.type.ToString() + ": " + iss.args + " Running: " + iss.IsRunning + " Crashed: " + iss.IsCrashed + " Uptime (s): " + iss.Uptime / 1000);
            }
        }