@@ -16,7 +16,7 @@ public ResultSet(MySqlDataReader dataReader)
1616 DataReader = dataReader ;
1717 }
1818
19- public async Task < ResultSet > ReadResultSetHeaderAsync ( IOBehavior ioBehavior , CancellationToken cancellationToken )
19+ public async Task < ResultSet > ReadResultSetHeaderAsync ( IOBehavior ioBehavior )
2020 {
2121 // ResultSet can be re-used, so initialize everything
2222 BufferState = ResultSetState . None ;
@@ -34,7 +34,7 @@ public async Task<ResultSet> ReadResultSetHeaderAsync(IOBehavior ioBehavior, Can
3434 {
3535 while ( true )
3636 {
37- var payload = await Session . ReceiveReplyAsync ( ioBehavior , cancellationToken ) . ConfigureAwait ( false ) ;
37+ var payload = await Session . ReceiveReplyAsync ( ioBehavior , CancellationToken . None ) . ConfigureAwait ( false ) ;
3838
3939 var firstByte = payload . HeaderByte ;
4040 if ( firstByte == OkPayload . Signature )
@@ -63,7 +63,7 @@ public async Task<ResultSet> ReadResultSetHeaderAsync(IOBehavior ioBehavior, Can
6363 while ( ( byteCount = await stream . ReadAsync ( readBuffer , 0 , readBuffer . Length ) . ConfigureAwait ( false ) ) > 0 )
6464 {
6565 payload = new PayloadData ( new ArraySegment < byte > ( readBuffer , 0 , byteCount ) ) ;
66- await Session . SendReplyAsync ( payload , ioBehavior , cancellationToken ) . ConfigureAwait ( false ) ;
66+ await Session . SendReplyAsync ( payload , ioBehavior , CancellationToken . None ) . ConfigureAwait ( false ) ;
6767 }
6868 }
6969 }
@@ -73,7 +73,7 @@ public async Task<ResultSet> ReadResultSetHeaderAsync(IOBehavior ioBehavior, Can
7373 ReadResultSetHeaderException = new MySqlException ( "Error during LOAD DATA LOCAL INFILE" , ex ) ;
7474 }
7575
76- await Session . SendReplyAsync ( EmptyPayload . Create ( ) , ioBehavior , cancellationToken ) . ConfigureAwait ( false ) ;
76+ await Session . SendReplyAsync ( EmptyPayload . Create ( ) , ioBehavior , CancellationToken . None ) . ConfigureAwait ( false ) ;
7777 }
7878 else
7979 {
@@ -85,11 +85,11 @@ public async Task<ResultSet> ReadResultSetHeaderAsync(IOBehavior ioBehavior, Can
8585
8686 for ( var column = 0 ; column < ColumnDefinitions . Length ; column ++ )
8787 {
88- payload = await Session . ReceiveReplyAsync ( ioBehavior , cancellationToken ) . ConfigureAwait ( false ) ;
88+ payload = await Session . ReceiveReplyAsync ( ioBehavior , CancellationToken . None ) . ConfigureAwait ( false ) ;
8989 ColumnDefinitions [ column ] = ColumnDefinitionPayload . Create ( payload ) ;
9090 }
9191
92- payload = await Session . ReceiveReplyAsync ( ioBehavior , cancellationToken ) . ConfigureAwait ( false ) ;
92+ payload = await Session . ReceiveReplyAsync ( ioBehavior , CancellationToken . None ) . ConfigureAwait ( false ) ;
9393 EofPayload . Create ( payload ) ;
9494
9595 LastInsertId = - 1 ;
0 commit comments