Skip to content

Commit

Permalink
Add missing DynamicallyAccessedMembers annotation
Browse files Browse the repository at this point in the history
This adds a missing DynamicallyAccessedMembers on Configure that means that the DynamicallyAccessedMembers annotation on AddQueryParameters is not fulfilled.
  • Loading branch information
hwoodiwiss committed Feb 3, 2024
1 parent f3fece1 commit 9e40da1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/RequestInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ public RequestInformation(Method method, string urlTemplate, IDictionary<string,
/// </summary>
/// <typeparam name="T">Type for the query parameters</typeparam>
/// <param name="requestConfiguration">Callback to configure the request</param>
#if NET5_0_OR_GREATER
public void Configure<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] T>(Action<RequestConfiguration<T>>? requestConfiguration) where T : class, new()
#else
public void Configure<T>(Action<RequestConfiguration<T>>? requestConfiguration) where T : class, new()
#endif
{
if(requestConfiguration == null) return;
var requestConfig = new RequestConfiguration<T>();
Expand Down

0 comments on commit 9e40da1

Please sign in to comment.