diff --git a/src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs b/src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs index 5ce68bad552..e16fa9885c7 100644 --- a/src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs +++ b/src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs @@ -36,11 +36,11 @@ internal ResilienceStrategyTelemetry(ResilienceTelemetrySource source, Diagnosti [UnconditionalSuppressMessage( "Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", - Justification = "The reflection is not used when consuming the event.")] + Justification = "Reflection is not used when consuming the event.")] [UnconditionalSuppressMessage( "AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", - Justification = "The reflection is not used when consuming the event.")] + Justification = "Reflection is not used when consuming the event.")] public void Report(ResilienceEvent resilienceEvent, ResilienceContext context, TArgs args) { Guard.NotNull(context); @@ -69,11 +69,11 @@ public void Report(ResilienceEvent resilienceEvent, ResilienceContext con [UnconditionalSuppressMessage( "Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", - Justification = "The reflection is not used when consuming the event.")] + Justification = "Reflection is not used when consuming the event.")] [UnconditionalSuppressMessage( "AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", - Justification = "The reflection is not used when consuming the event.")] + Justification = "Reflection is not used when consuming the event.")] public void Report(ResilienceEvent resilienceEvent, OutcomeArguments args) { args.Context.AddResilienceEvent(resilienceEvent); diff --git a/src/Polly.Core/Utils/Constants.cs b/src/Polly.Core/Utils/Constants.cs index 7c7ee8cb97d..b5c6fdc02f0 100644 --- a/src/Polly.Core/Utils/Constants.cs +++ b/src/Polly.Core/Utils/Constants.cs @@ -4,6 +4,6 @@ internal static class Constants { public const string OptionsValidation = """ This call validates the options using the data annotations attributes. - Make sure that the options are included using the '[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(OptionsType))]' attribute on top of calling method. + Make sure that the options are included by adding the '[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(OptionsType))]' attribute to the calling method. """; } diff --git a/src/Polly.Core/Utils/ValidationHelper.cs b/src/Polly.Core/Utils/ValidationHelper.cs index f50e9644273..7598a50664b 100644 --- a/src/Polly.Core/Utils/ValidationHelper.cs +++ b/src/Polly.Core/Utils/ValidationHelper.cs @@ -11,7 +11,7 @@ internal static class ValidationHelper [UnconditionalSuppressMessage( "Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", - Justification = "The member of options are preserved and no trimmed. See builder.AddStrategy() extension.")] + Justification = "The member of options are preserved and not trimmed. See builder.AddStrategy() extension.")] public static void ValidateObject(ResilienceValidationContext context) { Guard.NotNull(context);