@@ -16,7 +16,7 @@ public ResultSet(MySqlDataReader dataReader)
16
16
DataReader = dataReader ;
17
17
}
18
18
19
- public async Task < ResultSet > ReadResultSetHeaderAsync ( IOBehavior ioBehavior , CancellationToken cancellationToken )
19
+ public async Task < ResultSet > ReadResultSetHeaderAsync ( IOBehavior ioBehavior )
20
20
{
21
21
// ResultSet can be re-used, so initialize everything
22
22
BufferState = ResultSetState . None ;
@@ -34,7 +34,7 @@ public async Task<ResultSet> ReadResultSetHeaderAsync(IOBehavior ioBehavior, Can
34
34
{
35
35
while ( true )
36
36
{
37
- var payload = await Session . ReceiveReplyAsync ( ioBehavior , cancellationToken ) . ConfigureAwait ( false ) ;
37
+ var payload = await Session . ReceiveReplyAsync ( ioBehavior , CancellationToken . None ) . ConfigureAwait ( false ) ;
38
38
39
39
var firstByte = payload . HeaderByte ;
40
40
if ( firstByte == OkPayload . Signature )
@@ -63,7 +63,7 @@ public async Task<ResultSet> ReadResultSetHeaderAsync(IOBehavior ioBehavior, Can
63
63
while ( ( byteCount = await stream . ReadAsync ( readBuffer , 0 , readBuffer . Length ) . ConfigureAwait ( false ) ) > 0 )
64
64
{
65
65
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 ) ;
67
67
}
68
68
}
69
69
}
@@ -73,7 +73,7 @@ public async Task<ResultSet> ReadResultSetHeaderAsync(IOBehavior ioBehavior, Can
73
73
ReadResultSetHeaderException = new MySqlException ( "Error during LOAD DATA LOCAL INFILE" , ex ) ;
74
74
}
75
75
76
- await Session . SendReplyAsync ( EmptyPayload . Create ( ) , ioBehavior , cancellationToken ) . ConfigureAwait ( false ) ;
76
+ await Session . SendReplyAsync ( EmptyPayload . Create ( ) , ioBehavior , CancellationToken . None ) . ConfigureAwait ( false ) ;
77
77
}
78
78
else
79
79
{
@@ -85,11 +85,11 @@ public async Task<ResultSet> ReadResultSetHeaderAsync(IOBehavior ioBehavior, Can
85
85
86
86
for ( var column = 0 ; column < ColumnDefinitions . Length ; column ++ )
87
87
{
88
- payload = await Session . ReceiveReplyAsync ( ioBehavior , cancellationToken ) . ConfigureAwait ( false ) ;
88
+ payload = await Session . ReceiveReplyAsync ( ioBehavior , CancellationToken . None ) . ConfigureAwait ( false ) ;
89
89
ColumnDefinitions [ column ] = ColumnDefinitionPayload . Create ( payload ) ;
90
90
}
91
91
92
- payload = await Session . ReceiveReplyAsync ( ioBehavior , cancellationToken ) . ConfigureAwait ( false ) ;
92
+ payload = await Session . ReceiveReplyAsync ( ioBehavior , CancellationToken . None ) . ConfigureAwait ( false ) ;
93
93
EofPayload . Create ( payload ) ;
94
94
95
95
LastInsertId = - 1 ;
0 commit comments