Skip to content

Commit 80beeff

Browse files
committed
Change existing async helper calls in TdsParser.cs
1 parent 1608dfd commit 80beeff

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,13 +1269,12 @@ internal Task ExecuteFlush()
12691269
else
12701270
{
12711271
return AsyncHelper.CreateContinuationTaskWithState(
1272-
task: writePacketTask,
1272+
taskToContinue: writePacketTask,
12731273
state: this,
1274-
onSuccess: static (object state) =>
1274+
onSuccess: static state =>
12751275
{
1276-
TdsParserStateObject stateObject = (TdsParserStateObject)state;
1277-
stateObject.HasPendingData = true;
1278-
stateObject._messageStatus = 0;
1276+
state.HasPendingData = true;
1277+
state._messageStatus = 0;
12791278
}
12801279
);
12811280
}

0 commit comments

Comments
 (0)