You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add netstandard2.0 and net462 support, add Blazor WASM sample and enable AOT analyzer
- Added netstandard2.0 and net462 targets to the core Refit.Composite project.
- Conditionalized modern C# 11+ generic attributes and string validations for backward compatibility.
- Implemented IsAotCompatible analyzer with conditional TargetFramework checks.
- Created an official Blazor WASM integration sample inside the 'tests/' directory.
- Separated testing and sample packages via nested Central Package Management (CPM).
@@ -27,15 +28,27 @@ public static class RefitCompositeExtensions
27
28
/// <exception cref="ArgumentException">Thrown when <paramref name="baseApi"/> is null or empty.</exception>
28
29
/// <exception cref="UriFormatException">Thrown when <paramref name="baseApi"/> is not a valid URI.</exception>
29
30
/// <exception cref="InvalidDataException">Thrown when the composite interface contains duplicate API definitions or invalid handler registrations.</exception>
31
+
#if NET5_0_OR_GREATER||NETCOREAPP3_0_OR_GREATER
30
32
[RequiresUnreferencedCode("Scans composite API interface properties via reflection to configure HttpClient pipelines.")]
@@ -51,9 +64,14 @@ public static IServiceCollection AddRefitComposite<
51
64
/// <param name="configure">An optional delegate to further configure the underlying <see cref="IHttpClientBuilder"/> for each registered API client.</param>
52
65
/// <returns>The same <see cref="IServiceCollection"/> instance for chaining.</returns>
53
66
/// <exception cref="InvalidDataException">Thrown when the composite interface contains duplicate API definitions or invalid handler registrations.</exception>
67
+
#if NET5_0_OR_GREATER||NETCOREAPP3_0_OR_GREATER
54
68
[RequiresUnreferencedCode("Scans composite API interface properties via reflection to configure HttpClient pipelines.")]
0 commit comments