diff --git a/src/Polly.Core/Timeout/TimeoutResilienceStrategyBuilderExtensions.cs b/src/Polly.Core/Timeout/TimeoutResilienceStrategyBuilderExtensions.cs index 67b98891055..470440657f5 100644 --- a/src/Polly.Core/Timeout/TimeoutResilienceStrategyBuilderExtensions.cs +++ b/src/Polly.Core/Timeout/TimeoutResilienceStrategyBuilderExtensions.cs @@ -74,6 +74,8 @@ public static TBuilder AddTimeout(this TBuilder builder, TimeoutStrate Guard.NotNull(builder); Guard.NotNull(options); + ValidationHelper.ValidateObject(options, "The timeout strategy options are invalid.*"); + builder.AddStrategy(context => new TimeoutResilienceStrategy(options, context.TimeProvider, context.Telemetry), options); return builder; }