diff --git a/src/RequestInformation.cs b/src/RequestInformation.cs index 16ddf283..e8573f5a 100644 --- a/src/RequestInformation.cs +++ b/src/RequestInformation.cs @@ -47,7 +47,11 @@ public RequestInformation(Method method, string urlTemplate, IDictionary /// Type for the query parameters /// Callback to configure the request +#if NET5_0_OR_GREATER + public void Configure<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] T>(Action>? requestConfiguration) where T : class, new() +#else public void Configure(Action>? requestConfiguration) where T : class, new() +#endif { if(requestConfiguration == null) return; var requestConfig = new RequestConfiguration();