static void Main(string[] args) { // I know using .Result makes me a terrible person, and for this I apologize string graphToken = AuthUtils.GetTokenInAppService("https://graph.microsoft.com").Result; }
public async Task <string> Get() { return(await AuthUtils.GetTokenInAppService("https://graph.microsoft.com")); }