Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Zoltán Lehóczky <[email protected]>
  • Loading branch information
dministro and Piedone authored Nov 12, 2023
1 parent c2906c7 commit 8c58730
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,20 @@ public class CounterThresholdConfiguration
public bool Disable { get; set; } = true;

/// <summary>
/// Gets or sets the threshold of executed <see cref="System.Data.Common.DbCommand"/>s. Uses
/// <see cref="System.Data.Common.DbCommand.CommandText"/> and <see cref="System.Data.Common.DbCommand.Parameters"/>
/// for counting.
/// Gets or sets the threshold for the count of <see cref="System.Data.Common.DbCommand"/> executions, with the
/// query only counted as a duplicate if both its text (<see cref="System.Data.Common.DbCommand.CommandText"/>) and
/// parameters (<see cref="System.Data.Common.DbCommand.Parameters"/>) match. See
/// <see cref="DbCommandTextExecutionThreshold"/> for counting using only the command text.
/// </summary>
public int DbCommandExecutionThreshold { get; set; } = 11;
public int DbCommandIncludingParametersExecutionCountThreshold { get; set; } = 11;

/// <summary>
/// Gets or sets the threshold of executed <see cref="System.Data.Common.DbCommand"/>s. Uses
/// <see cref="System.Data.Common.DbCommand.CommandText"/> for counting.
/// Gets or sets the threshold for the count of <see cref="System.Data.Common.DbCommand"/> executions, with the
/// query counted as a duplicate if its text (<see cref="System.Data.Common.DbCommand.CommandText"/>) matches.
/// Parameters (<see cref="System.Data.Common.DbCommand.Parameters"/>) are not taken into account. See
/// <see cref="DbCommandExecutionThreshold"/> for counting using also the parameters.
/// </summary>
public int DbCommandTextExecutionThreshold { get; set; } = 11;
public int DbCommandExcludingParametersExecutionThreshold { get; set; } = 11;

/// <summary>
/// Gets or sets the threshold of readings of <see cref="System.Data.Common.DbCommand"/>s. Uses
Expand Down

0 comments on commit 8c58730

Please sign in to comment.