Can't await async extension method
Situation is pretty simple - I wrote an extension method and made it async with return type Task<T> . But when I try to call it using await, compiler throws an error which suggests that the extension method wasn't recognized as async at all. Here's my code: public static async Task<NodeReference<T>> CreateWithLabel<T>(this GraphClient client, T source, String label) where T: class { var node = client.Create(source); var url = string.Format(ConfigurationManager.AppSettings[configKey] + "/node/{0}/labels", node.Id); var serializedLabel = string.Empty; using (var tempStream = new MemoryStream())