We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 719fee5 + fa580ab commit d15ed87Copy full SHA for d15ed87
Src/StackifyLib/Models/EnvironmentDetail.cs
@@ -237,13 +237,13 @@ public static async Task<string> GetEC2InstanceId()
237
try
238
{
239
Client.Timeout = TimeSpan.FromSeconds(5);
240
- var content = await Client.GetAsync(EC2InstanceIdUrl);
+ var content = await Client.GetAsync(EC2InstanceIdUrl).ConfigureAwait(false);
241
242
int statusCode = (int)content.StatusCode;
243
244
if (statusCode >= 200 && statusCode < 300)
245
246
- string id = await content.Content.ReadAsStringAsync();
+ string id = await content.Content.ReadAsStringAsync().ConfigureAwait(false);
247
r = string.IsNullOrWhiteSpace(id) ? null : id;
248
249
if (r.Contains("html"))
0 commit comments