@@ -202,10 +202,10 @@ protected override async Task InitializeAsync(CancellationToken token)
202202 var q = CreateCatalogOidSql ( ) ;
203203
204204 var cmd = Connection . CreateCommand ( q ) ;
205- await using ( cmd . ConfigureAwait ( false ) ) {
206- var reader = await cmd . ExecuteReaderAsync ( token ) . ConfigureAwait ( false ) ;
207- await using ( reader . ConfigureAwait ( false ) ) {
208- while ( await reader . ReadAsync ( token ) . ConfigureAwait ( false ) ) {
205+ await using ( cmd . ConfigureAwaitFalse ( ) ) {
206+ var reader = await cmd . ExecuteReaderAsync ( token ) . ConfigureAwaitFalse ( ) ;
207+ await using ( reader . ConfigureAwaitFalse ( ) ) {
208+ while ( await reader . ReadAsync ( token ) . ConfigureAwaitFalse ( ) ) {
209209 var oid = Convert . ToInt64 ( reader [ 0 ] ) ;
210210 var name = reader . GetString ( 1 ) ;
211211 if ( name == "pg_class" ) {
@@ -356,8 +356,8 @@ public override async Task<Catalog> ExtractSchemesAsync(
356356 {
357357 var ( catalog , context ) = CreateCatalogAndContext ( catalogName , schemaNames ) ;
358358
359- await ExtractRoles ( context , true , token ) . ConfigureAwait ( false ) ;
360- await ExtractSchemasAsync ( context , token ) . ConfigureAwait ( false ) ;
359+ await ExtractRoles ( context , true , token ) . ConfigureAwaitFalse ( ) ;
360+ await ExtractSchemasAsync ( context , token ) . ConfigureAwaitFalse ( ) ;
361361 return catalog ;
362362 }
363363
@@ -385,15 +385,15 @@ private async ValueTask ExtractRoles(ExtractionContext context, bool isAsync, Ca
385385
386386
387387 if ( isAsync ) {
388- await using ( extractCurentUserCommand . ConfigureAwait ( false ) ) {
389- context . CurrentUserName = ( string ) await extractCurentUserCommand . ExecuteScalarAsync ( token ) . ConfigureAwait ( false ) ;
388+ await using ( extractCurentUserCommand . ConfigureAwaitFalse ( ) ) {
389+ context . CurrentUserName = ( string ) await extractCurentUserCommand . ExecuteScalarAsync ( token ) . ConfigureAwaitFalse ( ) ;
390390 }
391391
392392 var getAllUsersCommand = Connection . CreateCommand ( string . Format ( ExtractRolesQueryTemplate , context . CurrentUserName ) ) ;
393- await using ( getAllUsersCommand . ConfigureAwait ( false ) ) {
394- var reader = await getAllUsersCommand . ExecuteReaderAsync ( token ) . ConfigureAwait ( false ) ;
395- await using ( reader . ConfigureAwait ( false ) ) {
396- while ( await reader . ReadAsync ( token ) . ConfigureAwait ( false ) ) {
393+ await using ( getAllUsersCommand . ConfigureAwaitFalse ( ) ) {
394+ var reader = await getAllUsersCommand . ExecuteReaderAsync ( token ) . ConfigureAwaitFalse ( ) ;
395+ await using ( reader . ConfigureAwaitFalse ( ) ) {
396+ while ( await reader . ReadAsync ( token ) . ConfigureAwaitFalse ( ) ) {
397397 ReadUserData ( reader , context ) ;
398398 }
399399 }
@@ -461,22 +461,22 @@ private void ExtractSchemas(ExtractionContext context)
461461
462462 private async Task ExtractSchemasAsync ( ExtractionContext context , CancellationToken token )
463463 {
464- context . CurrentUserIdentifier = await GetMyUserSysIdAsync ( context . CurrentUserSysId , token ) . ConfigureAwait ( false ) ;
464+ context . CurrentUserIdentifier = await GetMyUserSysIdAsync ( context . CurrentUserSysId , token ) . ConfigureAwaitFalse ( ) ;
465465
466466 //Extraction of public schemas and schemas which is owned by current user
467- await ExtractSchemasInfoAsync ( context , token ) . ConfigureAwait ( false ) ;
467+ await ExtractSchemasInfoAsync ( context , token ) . ConfigureAwaitFalse ( ) ;
468468
469469 //Extraction of tables, views and sequences
470- await ExtractSchemaContentsAsync ( context , token ) . ConfigureAwait ( false ) ;
470+ await ExtractSchemaContentsAsync ( context , token ) . ConfigureAwaitFalse ( ) ;
471471
472472 //Extraction of columns of table and view
473- await ExtractTableAndViewColumnsAsync ( context , token ) . ConfigureAwait ( false ) ;
473+ await ExtractTableAndViewColumnsAsync ( context , token ) . ConfigureAwaitFalse ( ) ;
474474
475475 //Extraction of table indexes
476- await ExtractTableIndexesAsync ( context , token ) . ConfigureAwait ( false ) ;
476+ await ExtractTableIndexesAsync ( context , token ) . ConfigureAwaitFalse ( ) ;
477477
478478 //Extraction of domains
479- await ExtractDomainsAsync ( context , token ) . ConfigureAwait ( false ) ;
479+ await ExtractDomainsAsync ( context , token ) . ConfigureAwaitFalse ( ) ;
480480
481481 //Extraction of table and domain constraints
482482 await ExtractTableAndDomainConstraintsAsync ( context , token ) . ConfigureAwait ( false ) ;
0 commit comments