Hi I have created an async method is c# to get all projects from VSTS.
Here is how the defenition looks like
public async Task<string> GetProjects()
{
try
{
return r;
}
catch
{
return "";
}
}
But when I tries to get the return value from it, it says The await operator can only be used with Async methods.. I didnt understand it since Im new to these async and await methods. The way I tried to access is like this
string s;
s=await GetProjects();