Skip to content

Releases: I-RzR-I/AggregatedGenericResultMessage

v2.0.0.4127

22 Apr 15:06
c36f97f

Choose a tag to compare

What's Changed

Major release — contains breaking changes. See migration-guide.md for full before/after porting steps.

Breaking changes

  • [DEV] - (RzR) -> Change namespace from AggregatedGenericResultMessage to RzR.ResultMessage.
  • [FIX] - (RzR) -> Implicit Exception -> Result / Result<T> operators now throw ArgumentNullException on null (was: silent empty failure).
  • [FIX] - (RzR) -> Result<T>(Exception) constructor now adds one MessageType.Exception message (was: two: empty info + trace).
  • [FIX] - (RzR) -> JoinErrors(IEnumerable<Result>) now derives IsSuccess from the joined collection (was: inherited from caller).
  • [FIX] - (RzR) -> Success<T>(T, params RelatedObjectModel[]) no longer adds a ghost MessageType.None message when relatedObjects is empty/null.
  • [DEV] - (RzR) -> ExceptionHelper.PreserveStackTrace signature changed: void -> ExceptionDispatchInfo
  • [DEV] - (RzR) -> GetFirstMessage / GetFirstError now fall back to the first exception message when no plain message exists (was: empty string).

Obsoletions (compile warnings; will fail with TreatWarningsAsErrors)

  • [DEV] - (RzR) -> Result<T>.Instance -> use Result<T>.Create().
  • [DEV] - (RzR) -> ActionOnSuccess / ActionOnFailure / ActionOn (4 overloads) -> use Tap / Match.
  • [DEV] - (RzR) -> All 7 FunctionOn* / ExecuteFunction overloads taking Func<Task<TResult>> -> use FunctionExtensionsAsync.*Async (avoids sync-over-async deadlock).

  • [DEV] - (RzR) -> Map<TOut>(Func<T,TOut>), Bind<TOut>(Func<T,Result<TOut>>), Match<TOut>(Func<T,TOut>, Func<Result<T>,TOut>), Tap(Action<T>).
  • [DEV] - (RzR) -> MapAsync, BindAsync, TapAsync, MatchAsync, overloads on both Result<T> and Task<Result<T>>, accepting sync and async delegates. All ConfigureAwait(false).
  • [DEV] - (RzR) -> Tap(this Task<Result<T>>, Action<T>) for sync side-effect on awaited results.
  • [DEV] - (RzR) -> New static class FunctionExtensionsAsync exposing FunctionOnSuccessAsync, FunctionOnFailureAsync, FunctionOnAsync (4 overloads), ExecuteFunctionAsync.
  • [DEV] - (RzR) -> Validate(Func<T,bool>, error)- accumulates every violation in one chain pass; overloads for (predicate, key, error) and (predicate, MessageDataModel).
  • [DEV] - (RzR) -> Ensure(Func<T,bool>, error) — short-circuits once IsSuccess == false.
  • [DEV] - (RzR) -> ValidateAsync — async predicate on both Result<T> and Task<Result<T>>.
  • [DEV] - (RzR) -> Match(Func<IResult,TOut>, Func<IResult,TOut>)and parameterless /Action`-based overloads.
  • [DEV] - (RzR) -> MatchAsync<TOut>(Func<IResult,Task<TOut>>, Func<IResult,Task<TOut>>).
  • [FIX] - (RzR) -> RelatedObjectModel.ToString() is now null-safe when InDataSourceNames is null

Full Changelog: v1.4.1.8497...v2.0.0.4127

v1.4.1.8497

24 Feb 21:50
11956a2

Choose a tag to compare

What's Changed

  • Fix init is failure flag by @I-RzR-I in #30
  • Fix the IsFailure flag value.

Full Changelog: v1.4.0.7788...v1.4.1.8497

v1.4.0.7788

09 Feb 19:48
86d5605

Choose a tag to compare

What's Changed

  • Add failure boolean value by @I-RzR-I in #29
  • Add IsFailure in result.
  • Add new extension methods: WithMessages, ReturnAutoSuccessOrFailure.

Full Changelog: v1.3.5.4696...v1.4.0.7788

v1.3.5.4696

24 Dec 11:12
740cc7f

Choose a tag to compare

Merge pull request #25 from I-RzR-I/feature/UpgradeCleanUn

Upgrade version for the 'CodeSource' package.

v1.3.4.6865

09 Oct 16:27
02be9b5

Choose a tag to compare

Merge pull request #24 from I-RzR-I/fix/CVE-2024-43485

Fix CVE-2024-43485

v1.3.3.6068

01 Feb 15:05
f42bbf0

Choose a tag to compare

What's Changed

  • Adjust some methods location and new exec function by @I-RzR-I in #23

Full Changelog: v1.3.2.469...v1.3.3.6068

v1.3.2.469

18 Jan 23:27
b3d58a7

Choose a tag to compare

What's Changed

  • Add RelatedObject, Adjust code style, Adjust exposed methods by @I-RzR-I in #22

Full Changelog: v1.3.1.6141...v1.3.2.469

v1.3.1.6141

12 Dec 15:19
8c77544

Choose a tag to compare

Merge pull request #21 from I-RzR-I/fix/FixCliPackMultiAggregatedGene…

v1.3.0.5142

29 Nov 15:10
a5cb45b

Choose a tag to compare

Merge pull request #20 from I-RzR-I/feature/AddExtensionSetObjectMessage

Add extension result with input MessageDataModel, adjsut shell script.

v1.3.0.0

29 Nov 12:59
bb1327b

Choose a tag to compare

Merge pull request #19 from I-RzR-I/feature/AddMessageDetails

Modify current message (string) into object, fix SOAP/XML serialization