Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.14.0 #93

Merged
merged 4 commits into from
Mar 10, 2024
Merged

v3.14.0 #93

merged 4 commits into from
Mar 10, 2024

Conversation

chullybun
Copy link
Collaborator

  • Enhancement: Planned feature obsoletion. The TypedHttpClientBase methods WithRetry, WithTimeout, WithCustomRetryPolicy and WithMaxRetryDelay are now marked as obsolete and will result in a compile-time warning. Related TypedHttpClientOptions, HttpRequestLogger and SettingsBase capabilities have also been obsoleted.
    • Why? Primarily based on Microsoft guidance around IHttpClientFactory usage. Specifically advances in native HTTP resilency support, and the .NET 8 networking improvements.
    • When? Soon, planned within the next minor release (v3.15.0). This will simplify the underlying TypedHttpClientBase logic and remove the internal dependency on an older version of the Polly package.
    • How? Review the compile-time warnings, and update the codebase to use the native IHttpClientFactory resiliency capabilities.
  • Enhancement: Updated CoreEx.UnitTesting to leverage the latest UnitTestEx (v4.2.0) which has added support for testing HttpMessageHandler and HttpClient configurations. This will enable improved mocked testing as a result of the above changes where applicable.
  • Enhancement: Added CustomSerializers property to IEventSerializer of type CustomEventSerializers. This allows for the add (registration) of custom JSON serialization logic for a specified EventData.Value type. This is intended to allow an opportunity to serialize a specific type in a different manner to the default JSON serialization; for example, exclude certain properties, or use a different serialization format.
  • Enhancement: Updated the unit testing ExpectedEventPublisher so that it now executes the configured IEventSerializer during publishing. A new UnitTestBase.GetExpectedEventPublisher extension method added to simplify access to the ExpectedEventPublisher instance and corresponding GetPublishedEvents property to enable further assert where required.

@chullybun chullybun merged commit d6579bb into main Mar 10, 2024
2 checks passed
@chullybun chullybun deleted the v3.14.0 branch March 10, 2024 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant