public async Task <Uri> GetMatchLink(StormReplay stormReplay) { var apiKey = settings.HeroesProfileApiKey; var hotsApiReplayId = replayHelper.TryGetReplayId(stormReplay); using (var client = new HttpClient() { BaseAddress = settings.HeroesProfileBaseUri }) { string replayId = await client.GetStringAsync($"Heroesprofile/ReplayID?hotsapi_replayID={hotsApiReplayId}&api_token={apiKey}").ConfigureAwait(false); return(new Uri($"https://www.heroesprofile.com/Match/Single/?replayID={replayId}")); } }