Skip to content

Commit e9811b5

Browse files
committed
Rename the method.
Signed-off-by: Bradley Grainger <[email protected]>
1 parent d05d248 commit e9811b5

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/MySqlConnector/Core/CommandExecutor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static async ValueTask<MySqlDataReader> ExecuteReaderAsync(CommandListPos
3939
}
4040
}
4141

42-
await payloadCreator.WritePrologueAsync(connection, commandListPosition, ioBehavior, cancellationToken).ConfigureAwait(false);
42+
await payloadCreator.SendCommandPrologueAsync(connection, commandListPosition, ioBehavior, cancellationToken).ConfigureAwait(false);
4343

4444
var writer = new ByteBufferWriter();
4545
//// cachedProcedures will be non-null if there is a stored procedure, which is also the only time it will be read

src/MySqlConnector/Core/ConcatenatedCommandPayloadCreator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ internal sealed class ConcatenatedCommandPayloadCreator : ICommandPayloadCreator
88
{
99
public static ICommandPayloadCreator Instance { get; } = new ConcatenatedCommandPayloadCreator();
1010

11-
public ValueTask WritePrologueAsync(MySqlConnection connection, CommandListPosition commandListPosition, IOBehavior ioBehavior, CancellationToken cancellationToken) =>
11+
public ValueTask SendCommandPrologueAsync(MySqlConnection connection, CommandListPosition commandListPosition, IOBehavior ioBehavior, CancellationToken cancellationToken) =>
1212
default;
1313

1414
public bool WriteQueryCommand(ref CommandListPosition commandListPosition, IDictionary<string, CachedProcedure?> cachedProcedures, ByteBufferWriter writer, bool appendSemicolon)

src/MySqlConnector/Core/ICommandPayloadCreator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ namespace MySqlConnector.Core;
88
internal interface ICommandPayloadCreator
99
{
1010
/// <summary>
11-
/// Writes any prologue data that needs to be sent before the current command in the command list.
11+
/// Sends any data that is required to be sent to the server before the current command in the command list.
1212
/// </summary>
13-
/// <param name="connection">The <see cref="MySqlConnection"/>.</param>
13+
/// <param name="connection">The <see cref="MySqlConnection"/> to which the data will be written.</param>
1414
/// <param name="commandListPosition">The <see cref="CommandListPosition"/> giving the current command and current prepared statement.</param>
1515
/// <param name="ioBehavior">The IO behavior.</param>
1616
/// <param name="cancellationToken">A cancellation token to cancel the asynchronous operation.</param>
17-
/// <returns>A <see cref="ValueTask"/> representing the potentially-asynchronous operation.</returns>
18-
ValueTask WritePrologueAsync(MySqlConnection connection, CommandListPosition commandListPosition, IOBehavior ioBehavior, CancellationToken cancellationToken);
17+
/// <returns>A <see cref="ValueTask"/> representing the asynchronous operation or a completed <see cref="ValueTask"/> if no data needed to be sent.</returns>
18+
ValueTask SendCommandPrologueAsync(MySqlConnection connection, CommandListPosition commandListPosition, IOBehavior ioBehavior, CancellationToken cancellationToken);
1919

2020
/// <summary>
2121
/// Writes the payload for an "execute query" command to <paramref name="writer"/>.

src/MySqlConnector/Core/SingleCommandPayloadCreator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ internal sealed class SingleCommandPayloadCreator : ICommandPayloadCreator
1515
// with this as the first column name, the result set will be treated as 'out' parameters for the previous command.
1616
public static string OutParameterSentinelColumnName => "\uE001\b\x0B";
1717

18-
public async ValueTask WritePrologueAsync(MySqlConnection connection, CommandListPosition commandListPosition, IOBehavior ioBehavior, CancellationToken cancellationToken)
18+
public async ValueTask SendCommandPrologueAsync(MySqlConnection connection, CommandListPosition commandListPosition, IOBehavior ioBehavior, CancellationToken cancellationToken)
1919
{
2020
// get the current command and check for prepared statements
2121
var command = commandListPosition.CommandAt(commandListPosition.CommandIndex);

src/MySqlConnector/MySqlDataReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ internal async Task<bool> NextResultAsync(IOBehavior ioBehavior, CancellationTok
7474
Command = m_commandListPosition.CommandAt(m_commandListPosition.CommandIndex);
7575
using (Command.CancellableCommand.RegisterCancel(cancellationToken))
7676
{
77-
await m_payloadCreator!.WritePrologueAsync(Command.Connection!, m_commandListPosition, ioBehavior, cancellationToken).ConfigureAwait(false);
77+
await m_payloadCreator!.SendCommandPrologueAsync(Command.Connection!, m_commandListPosition, ioBehavior, cancellationToken).ConfigureAwait(false);
7878

7979
var writer = new ByteBufferWriter();
8080
if (!Command.Connection!.Session.IsCancelingQuery && m_payloadCreator.WriteQueryCommand(ref m_commandListPosition, m_cachedProcedures!, writer, false))

0 commit comments

Comments
 (0)