private async Task <int> GetEngagementCountAsync(string url) { OpenGraphEngagement engagement = null; await _errors.LogAsync($"{nameof(EngagementCountClient)}.{nameof(GetEngagementCountAsync)}({nameof(url)} = {url})", async() => { engagement = await _facebook.GetEngagementAsync(url); }); if (engagement != null) { return(engagement.TotalEngagementCount); } else { return(0); } }