GetActiveServerList() private method

private GetActiveServerList ( ) : List
return List
Example #1
0
        private void BindServerList()
        {
            ActiveServerList = ServerManager.GetActiveServerList();

            ServerContainer.DataSource = ActiveServerList;
            ServerContainer.DataBind();
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Clear();
            var obj = new JObject(new JProperty("machineName", ServerManager.MachineName), new JProperty("servers", JArray.FromObject(ServerManager.GetActiveServerList())));

            Response.BinaryWrite(Encoding.UTF8.GetBytes(obj.ToString()));
            Response.End();
        }