Skip to content

Commit

Permalink
Resolve IL2091 warnings
Browse files Browse the repository at this point in the history
Resolve two AoT warnings on `OutcomePipelineBuilderExtensions`.
Relates to #1732.
  • Loading branch information
martincostello committed Oct 28, 2023
1 parent 5fa70ff commit 4033484
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ internal static class OutcomePipelineBuilderExtensions
/// <param name="injectionRate">The injection rate for a given execution, which the value should be between [0, 1] (inclusive).</param>
/// <param name="result">The outcome to inject. For disposable outcomes use either the generator or the options overload.</param>
/// <returns>The builder instance with the retry strategy added.</returns>
public static ResiliencePipelineBuilder<TResult> AddChaosResult<TResult>(this ResiliencePipelineBuilder<TResult> builder, double injectionRate, TResult result)
public static ResiliencePipelineBuilder<TResult> AddChaosResult<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TResult>(
this ResiliencePipelineBuilder<TResult> builder,
double injectionRate,
TResult result)
{
Guard.NotNull(builder);

Expand All @@ -37,8 +40,10 @@ public static ResiliencePipelineBuilder<TResult> AddChaosResult<TResult>(this Re
/// <param name="injectionRate">The injection rate for a given execution, which the value should be between [0, 1] (inclusive).</param>
/// <param name="resultGenerator">The outcome generator delegate.</param>
/// <returns>The builder instance with the retry strategy added.</returns>
public static ResiliencePipelineBuilder<TResult> AddChaosResult<TResult>(
this ResiliencePipelineBuilder<TResult> builder, double injectionRate, Func<TResult?> resultGenerator)
public static ResiliencePipelineBuilder<TResult> AddChaosResult<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TResult>(
this ResiliencePipelineBuilder<TResult> builder,
double injectionRate,
Func<TResult?> resultGenerator)
{
Guard.NotNull(builder);

Expand Down

0 comments on commit 4033484

Please sign in to comment.