Upgrading Refit 3 to 4
Breaking3.1.0 → 4.8.14Breaking3New14Changed9Fixed20Other23
BreakingUpgrade verdict
3 breaking changes.
In plain terms
- The attribute used to set a service's base address has a new name.
- Removes OptionsWithBodyDetected.
- Custom content serializers must update their SerializeAsync implementation to the new generic signature.
Must act 3 items need code or config changes
Target frameworks requirement changed in 4.5.4: .NETFramework4.5, .NETStandard1.1, .NETStandard1.3, UAP10.0, Windows8.1, WindowsPhone8.0, WindowsPhoneApp8.1 → .NETFramework4.6.1, .NETStandard1.4, .NETStandard2.0.
What you must change
Breaking3
Renames RefitRestServiceAttribute to BaseAddressAttribute.
RefitRestServiceAttributeBaseAddressAttributeRemoves OptionsWithBodyDetected.
OptionsWithBodyDetectedMakes IContentSerializer.SerializeAsync generic.
IContentSerializer.SerializeAsync