Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve IL2091 warnings #1744

Merged
merged 1 commit into from
Oct 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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