Releases: Krusen/ErgastApi.Net
Releases · Krusen/ErgastApi.Net
v2.0.0-rc
There has been made a few breaking changes for V2, but most users will likely not notice these.
Click here for a full overview of changes made compared to v1.2.2.
Changed
- Updated requests and their properties/filters to match what works with the API
- Added speed conversion on
AverageSpeed
class (mph/kph)
Added
- Support for
CancellationToken
- Extension methods with request builders (fluent request configuration)
- Extension methods with shortcuts for common requests
- Conversion of speed from/to mph/kph on
AverageSpeed
class
Removed
- Custom caching (
IErgastCache
and related code) in favor of Polly
Fluent request configuration example
// Get a list of seasons where Alonso drove for Ferrari and won the WDC but Ferrari only got 2nd in the WCC
await client.GetSeasonResponseAsync(x => x.Driver("alonso").Constructor("ferrari").DriverStanding(1).ConstructorStanding(2));