Repository navigation
Releases
Releases · d20Tek/minimal-result
Added IfOrElseResult with action parameters
- Added IfOrElseResult with action parameters to handle that use case and return the current result, since the actions return void.
- Renamed IfOrElse overloads to IfOrElseResult for methods that return a new Result.
- Updated unit tests.
- Updated package version.
Refactored Result<T> class in prep for release
- Simplified the Result class with IfOrElse methods rather than Match to make it consistent with Optional.
- Added Result chaining ability to call multiple functions on success but short circuit on failure.
- Naming changes.
- Refactor between sync and async Result methods.
- Added and updated unit tests for these changes.
Added Optional result type
Added Optional class to handle returning optional results rather than null.
Changed exception error code and added ToErrorResult method
- Changed code to General.Exception for exception errors rather than UnexpectedException.
- Added ToErrorResult method that converts one result's errors to another type.
Upgrade Package to .NET 8
Upgraded these packages, unit tests, and samples to .NET 8
Result enhancements
- Added Result.ErrorList property for when users need to get at the list version of errors for conversion.
- Added Result.ToString that show success/failure message, and for failure displays list of errors.
- Added client version of ProblemDetails class (useful for clients that don't have dependency on AspNetCore MVC packages, but need to deserialize service failures).
Renamed packages to match new branding
- Renamed packages to D20Tek.Minimal.Result.* to match new branding.
- Updated all namespaces in code and tests.
- Got all unit tests changed and passing.
- Updated sample projects to use new packages and change namespaces.
Added ValidationsResult to help build validation logic
Added ValidationsResult to help build validation logic (and wrap multiple errors) in application logic, and then convert them to base Result objects.
Added basic readme page
- Added basic readme instructions.
- Updated samples to consume latest nuget packages.
- Incremented Result packages versions.
test new public release
Added extension integrations for FluentValidation and Mediatr (#11) * Update nuget versions and get latest Result package. * Added a full sample project in MinimalApi that uses Result with Mediatr and FluentValidation. Added Mediatr Send and IRequestHandler implementations in a separate Application project. * Added FluentValidationExtensions to convert list of ValidationResults into our Errors. Added ResultValidationBehavior that performs validations in the Mediatr pipeline before calling the command handler (to separate validation from command processing). Update Full sample to have FluentValidation validators, and register validators and behavior with DI container. * Added unit tests for FluenValidationExtensions and ResultValidationBehavior. * Updated nuget package information. Added nuget release for D20Tek.Patterns.Result.Extensions package.