Skip to content

Releases

Added IfOrElseResult with action parameters

Choose a tag to compare

@DarthPedro DarthPedro released this 02 Jul 19:06
261ae81
  • 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

Choose a tag to compare

@DarthPedro DarthPedro released this 02 Jul 04:04
cc64be5
  • 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

Pre-release

Choose a tag to compare

@DarthPedro DarthPedro released this 26 Mar 05:10
80964e8

Added Optional class to handle returning optional results rather than null.

Changed exception error code and added ToErrorResult method

Choose a tag to compare

@DarthPedro DarthPedro released this 19 Mar 21:26
8190dd3
  • 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

Pre-release

Choose a tag to compare

@DarthPedro DarthPedro released this 13 Dec 04:43

Upgraded these packages, unit tests, and samples to .NET 8

Result enhancements

Result enhancements Pre-release
Pre-release

Choose a tag to compare

@DarthPedro DarthPedro released this 21 Sep 22:52
3919c55
  • 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

Pre-release

Choose a tag to compare

@DarthPedro DarthPedro released this 21 Aug 22:40
755a251
  • 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

Choose a tag to compare

@DarthPedro DarthPedro released this 18 Aug 22:04

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

Pre-release

Choose a tag to compare

@DarthPedro DarthPedro released this 21 Jul 00:09
c7e8b9c
  • Added basic readme instructions.
  • Updated samples to consume latest nuget packages.
  • Incremented Result packages versions.

test new public release

Pre-release

Choose a tag to compare

@DarthPedro DarthPedro released this 19 Jul 05:43
357a4f0
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.