Skip to content

Commit f6a2ddc

Browse files
committed
Round of feedback.
1 parent 2b182bc commit f6a2ddc

13 files changed

+137
-146
lines changed

Diff for: src/EFCore.Relational/Diagnostics/CommandEndEventData.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class CommandEndEventData : CommandEventData
1919
/// <param name="messageGenerator">A delegate that generates a log message for this event.</param>
2020
/// <param name="connection">The <see cref="DbConnection" /> being used.</param>
2121
/// <param name="command">The <see cref="DbCommand" />.</param>
22-
/// <param name="logCommandText">The command text that can be logged in case <see cref="DbCommand.CommandText" /> contains sensitive information.</param>
22+
/// <param name="logCommandText">The command text that can be logged.</param>
2323
/// <param name="context">The <see cref="DbContext" /> currently being used, to null if not known.</param>
2424
/// <param name="executeMethod">The <see cref="DbCommand" /> method.</param>
2525
/// <param name="commandId">A correlation ID that identifies the <see cref="DbCommand" /> instance being used.</param>
@@ -34,7 +34,7 @@ public CommandEndEventData(
3434
Func<EventDefinitionBase, EventData, string> messageGenerator,
3535
DbConnection connection,
3636
DbCommand command,
37-
string? logCommandText,
37+
string logCommandText,
3838
DbContext? context,
3939
DbCommandMethod executeMethod,
4040
Guid commandId,

Diff for: src/EFCore.Relational/Diagnostics/CommandErrorEventData.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class CommandErrorEventData : CommandEndEventData, IErrorEventData
1818
/// <param name="messageGenerator">A delegate that generates a log message for this event.</param>
1919
/// <param name="connection">The <see cref="DbConnection" /> being used.</param>
2020
/// <param name="command">The <see cref="DbCommand" /> that was executing when it failed.</param>
21-
/// <param name="logCommandText">The command text that can be logged in case <see cref="DbCommand.CommandText" /> contains sensitive information.</param>
21+
/// <param name="logCommandText">The command text that can be logged.</param>
2222
/// <param name="context">The <see cref="DbContext" /> currently being used, to null if not known.</param>
2323
/// <param name="executeMethod">The <see cref="DbCommand" /> method that was used to execute the command.</param>
2424
/// <param name="commandId">A correlation ID that identifies the <see cref="DbCommand" /> instance being used.</param>
@@ -34,7 +34,7 @@ public CommandErrorEventData(
3434
Func<EventDefinitionBase, EventData, string> messageGenerator,
3535
DbConnection connection,
3636
DbCommand command,
37-
string? logCommandText,
37+
string logCommandText,
3838
DbContext? context,
3939
DbCommandMethod executeMethod,
4040
Guid commandId,

Diff for: src/EFCore.Relational/Diagnostics/CommandEventData.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@ public class CommandEventData : CommandCorrelatedEventData
2525
/// <param name="commandId">A correlation ID that identifies the <see cref="DbCommand" /> instance being used.</param>
2626
/// <param name="connectionId">A correlation ID that identifies the <see cref="DbConnection" /> instance being used.</param>
2727
/// <param name="async">Indicates whether or not the command was executed asynchronously.</param>
28-
/// <param name="logSensitiveValues">Indicates whether or not the application allows logging of sensitive values.</param>
28+
/// <param name="logParameterValues">Indicates whether or not the application allows logging of parameter values.</param>
2929
/// <param name="startTime">The start time of this event.</param>
3030
/// <param name="commandSource">Source of the command.</param>
3131
public CommandEventData(
3232
EventDefinitionBase eventDefinition,
3333
Func<EventDefinitionBase, EventData, string> messageGenerator,
3434
DbConnection connection,
3535
DbCommand command,
36-
string? logCommandText,
36+
string logCommandText,
3737
DbContext? context,
3838
DbCommandMethod executeMethod,
3939
Guid commandId,
4040
Guid connectionId,
4141
bool async,
42-
bool logSensitiveValues,
42+
bool logParameterValues,
4343
DateTimeOffset startTime,
4444
CommandSource commandSource)
4545
: base(
@@ -56,7 +56,7 @@ public CommandEventData(
5656
{
5757
Command = command;
5858
LogCommandText = logCommandText;
59-
LogSensitiveValues = logSensitiveValues;
59+
LogParameterValues = logParameterValues;
6060
}
6161

6262
/// <summary>
@@ -67,10 +67,10 @@ public CommandEventData(
6767
/// <summary>
6868
/// The command text that can be logged in case <see cref="DbCommand.CommandText" /> contains sensitive information.
6969
/// </summary>
70-
public virtual string? LogCommandText { get; }
70+
public virtual string LogCommandText { get; }
7171

7272
/// <summary>
7373
/// Indicates whether or not the application allows logging of parameter values.
7474
/// </summary>
75-
public virtual bool LogSensitiveValues { get; }
75+
public virtual bool LogParameterValues { get; }
7676
}

Diff for: src/EFCore.Relational/Diagnostics/CommandExecutedEventData.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class CommandExecutedEventData : CommandEndEventData
1818
/// <param name="messageGenerator">A delegate that generates a log message for this event.</param>
1919
/// <param name="connection">The <see cref="DbConnection" /> being used.</param>
2020
/// <param name="command">The <see cref="DbCommand" /> that was executing when it failed.</param>
21-
/// <param name="logCommandText">The command text that can be logged in case <see cref="DbCommand.CommandText" /> contains sensitive information.</param>
21+
/// <param name="logCommandText">The command text that can be logged.</param>
2222
/// <param name="context">The <see cref="DbContext" /> currently being used, to null if not known.</param>
2323
/// <param name="executeMethod">The <see cref="DbCommand" /> method that was used to execute the command.</param>
2424
/// <param name="commandId">A correlation ID that identifies the <see cref="DbCommand" /> instance being used.</param>
@@ -34,7 +34,7 @@ public CommandExecutedEventData(
3434
Func<EventDefinitionBase, EventData, string> messageGenerator,
3535
DbConnection connection,
3636
DbCommand command,
37-
string? logCommandText,
37+
string logCommandText,
3838
DbContext? context,
3939
DbCommandMethod executeMethod,
4040
Guid commandId,

0 commit comments

Comments
 (0)