File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/Authentication.Abstractions Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ private static async Task<List<ArmMetadata>> InitializeEnvironmentsFromArm(strin
212
212
{
213
213
httpOperations = HttpClientOperationsFactory . Create ( ) . GetHttpOperations ( ) ;
214
214
}
215
- var armResponseMessage = await httpOperations . GetAsync ( armMetadataRequestUri ) ;
215
+ var armResponseMessage = await httpOperations . GetAsync ( armMetadataRequestUri ) . ConfigureAwait ( false ) ;
216
216
if ( armResponseMessage ? . StatusCode != HttpStatusCode . OK )
217
217
{
218
218
throw new Exception ( $ "Failed to load cloud metadata from the url { armMetadataRequestUri } .") ;
@@ -222,7 +222,7 @@ private static async Task<List<ArmMetadata>> InitializeEnvironmentsFromArm(strin
222
222
223
223
if ( armResponseMessage . Content != null )
224
224
{
225
- armMetadataContent = await armResponseMessage . Content . ReadAsStringAsync ( ) ;
225
+ armMetadataContent = await armResponseMessage . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ;
226
226
}
227
227
if ( string . IsNullOrEmpty ( armMetadataContent ) )
228
228
{
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public HttpClientOperations(HttpClient client)
47
47
48
48
public async Task < HttpResponseMessage > GetAsync ( string requestUri )
49
49
{
50
- return await _client . GetAsync ( requestUri ) ;
50
+ return await _client . GetAsync ( requestUri ) . ConfigureAwait ( false ) ;
51
51
}
52
52
}
53
53
}
You can’t perform that action at this time.
0 commit comments