@@ -202,10 +202,10 @@ protected override async Task InitializeAsync(CancellationToken token)
202
202
var q = CreateCatalogOidSql ( ) ;
203
203
204
204
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 ( ) ) {
209
209
var oid = Convert . ToInt64 ( reader [ 0 ] ) ;
210
210
var name = reader . GetString ( 1 ) ;
211
211
if ( name == "pg_class" ) {
@@ -356,8 +356,8 @@ public override async Task<Catalog> ExtractSchemesAsync(
356
356
{
357
357
var ( catalog , context ) = CreateCatalogAndContext ( catalogName , schemaNames ) ;
358
358
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 ( ) ;
361
361
return catalog ;
362
362
}
363
363
@@ -385,15 +385,15 @@ private async ValueTask ExtractRoles(ExtractionContext context, bool isAsync, Ca
385
385
386
386
387
387
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 ( ) ;
390
390
}
391
391
392
392
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 ( ) ) {
397
397
ReadUserData ( reader , context ) ;
398
398
}
399
399
}
@@ -461,22 +461,22 @@ private void ExtractSchemas(ExtractionContext context)
461
461
462
462
private async Task ExtractSchemasAsync ( ExtractionContext context , CancellationToken token )
463
463
{
464
- context . CurrentUserIdentifier = await GetMyUserSysIdAsync ( context . CurrentUserSysId , token ) . ConfigureAwait ( false ) ;
464
+ context . CurrentUserIdentifier = await GetMyUserSysIdAsync ( context . CurrentUserSysId , token ) . ConfigureAwaitFalse ( ) ;
465
465
466
466
//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 ( ) ;
468
468
469
469
//Extraction of tables, views and sequences
470
- await ExtractSchemaContentsAsync ( context , token ) . ConfigureAwait ( false ) ;
470
+ await ExtractSchemaContentsAsync ( context , token ) . ConfigureAwaitFalse ( ) ;
471
471
472
472
//Extraction of columns of table and view
473
- await ExtractTableAndViewColumnsAsync ( context , token ) . ConfigureAwait ( false ) ;
473
+ await ExtractTableAndViewColumnsAsync ( context , token ) . ConfigureAwaitFalse ( ) ;
474
474
475
475
//Extraction of table indexes
476
- await ExtractTableIndexesAsync ( context , token ) . ConfigureAwait ( false ) ;
476
+ await ExtractTableIndexesAsync ( context , token ) . ConfigureAwaitFalse ( ) ;
477
477
478
478
//Extraction of domains
479
- await ExtractDomainsAsync ( context , token ) . ConfigureAwait ( false ) ;
479
+ await ExtractDomainsAsync ( context , token ) . ConfigureAwaitFalse ( ) ;
480
480
481
481
//Extraction of table and domain constraints
482
482
await ExtractTableAndDomainConstraintsAsync ( context , token ) . ConfigureAwait ( false ) ;
0 commit comments