Repository navigation
Releases
Releases · YoussefSell/Result.Net
v1.7.1
v1.7.0
For more details, click here to get to our CHANGELOG.
- Added
ToResult<TResult>(this Exception exception)extension method for converting exceptions to Result instances. - Introduced a new configuration style with
Result.Configure(options => {})for centralized settings. - Removed
ResultExceptionMapperandResultMessageLocalizerand integrated their functionality intoResultObjectConfiguration. - Enhanced documentation for clarity and consistency.
- Updated
ResultExtensionsandResultclasses to utilize the new configuration structure. - Adjusted unit tests to align with the new configuration approach.
- Improved error handling and messaging throughout the codebase.
- Refactored methods for better readability and maintainability.
v1.6.0
For more details click here to get to our CHANGELOG.
Changes:
- removed exception as a property from the ResultError definition and added a collection of meta-data that contains the exception if any and will be used to pass more data if needed.
v1.5.0
For more details click here to get to our CHANGELOG.
Changes:
- added a
Cast<>()extension method that allows you to cast aResultinstance into aResult{TData}instance. - Removed
ListResult<>no need for this type, to simplify the usage theResult<data[]>can be used instead. - Removed
Clone()methods, the newCast<>()method should be used instead. - All properties on the
Resultinstance will not be set and they will have their default value (null, or empty string). - Fixed JSON Deserialization issue by removing all constructors from the
Resultclass and only setting one default constructor.
v1.4.0
For more details click here to get to our CHANGELOG.
Changes:
- added a new extension method
WithLocalizedMessage()on the Result type to allow setting localized messages on the Result object instance.
v1.3.0
For more details click here to get to our CHANGELOG.
Changes:
- added a
Match()extension method on the Result type to run logic based on the result status. - added
Exceptionproperty to ResultError. - added new extension methods on the Result type to attach errors.
- removed
Typeproperty from ResultError. - updated some comments.
v1.2.1
For more details click here to get to our CHANGELOG.
Changes:
- fixed null key issue if the exception key type is different than string, when converting an exception to Result object using ToResult() method.
v1.2.0
For more details click here to get to our CHANGELOG.
Changes:
- Changed package namespace from Result.Net to ResultNet.
- Changed ResultError type from class to struct.
v1.1.0
For more details click here to get to our CHANGELOG.
Changes:
- Added a function
FailedBecauseto check if the result has failed because of a specified error code. - Added a function
Asto cast exceptions to a given type. - Updated some comments.