When trying to compile my c# windows app I am getting the following error:
The name 'GetActiveLB' does not exist in the current context
Here's the code that calls that function:
using F5LTMMaintenance;
......
    private void btnLBSetA_Click(object sender, EventArgs e)
    {
        List<string> range = GetActiveLB();
        foreach (string item in range)
        {
            // Do something with item
        }
    }
Then I have a class with the following:
namespace F5LTMMaintenance
{
    public class F5LTM<T>
    {
        public List<T> GetActiveLB()
        {
            var client = new RestClient("mylb.domain.local");
            var request = new RestRequest("mgmt/tm/cm/failover-status", Method.GET);
            var queryResult = client.Execute<List<T>>(request).Data;
            return queryResult == null ? new List<T>() : queryResult;
        }
    }
}
The GetActiveLB function does exist, its a public function so why am I getting this error? Any help would be appreciated.
 
     
     
     
     
    