1000) ShortToLongUrl.Clear(); ShortToLongUrl.TryAdd(link, longUrlResponse.LongUrl); return longUrlResponse.LongUrl; } } } catch (Exception ex) { Console.WriteLine(ex.Message); } return link; } } [DataContract] public class LongUrlResponse { [DataMember(Name = "long-url")] public string LongUrl { get; set; } } At compile time, the async/await mechanism injects a significant chunk of code in the form of a state machine to handle waiting for a response. In many cases this a fair trade-off given the economy of expression and “serial-like” layout of code." />

Share on Facebook

Share on Twitter

We got your feedback!

Recent posts