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.11.0 #90

Merged
merged 5 commits into from
Feb 6, 2024
Merged

v3.11.0 #90

merged 5 commits into from
Feb 6, 2024

Conversation

chullybun
Copy link
Collaborator

  • Enhancement: The ITypedToResult updated to correctly implement IToResult as the simple ToResult where required.
  • Enhancement: Added Result.AsTask() and Result<T>.AsTask to simplify the conversion to a completed Task<Result> or Task<Result<T>> where applicable.
  • Enhancement: Added IResult.IsFailureOfType<TException> to indicate whether the result is in a failure state and the underlying error is of the specified TException type.
  • Enhancement: Added EventTemplate property to the WebApiPublisherArgs and WebApiPublisherCollectionArgs to define an EventData template.
  • Enhancement: Added SubscriberBase<T> constructor overload to enable specification of valueValidator and ValueIsRequired parameters versus setting properties directly simplifying usage.
  • Enhancement: Enum renames to improve understanding of intent for event subscribing logic: ErrorHandling.None is now ErrorHandling.HandleByHost and ErrorHandling.Handle is now ErrorHandling.HandleBySubscriber.
  • Enhancement: Simplified the ServiceBusSubscriber.Receive methods by removing the afterReceive parameter which served no real purpose; also, reversed the validator and valueIsRequired parameters (order as stated) as the validator is more likely to be specified than valueIsRequired which defaults to true.
  • Enhancement: Added CoreEx.Hosting.Work namespace which includes light-weight/simple foundational capabilities to track and orchestrate work; intended for the likes of asynchronous request-response scenarios.
    • Added IWorkStatePersistence to enable flexible/pluggable persistence of the WorkState and resulting data; includes InMemoryWorkStatePersistence for testing, FileWorkStatePersistence for file-based, and TableWorkStatePersistence leveraging Azure table storage.
    • Added WorkStateOrchestrator support to EventSubscriberBase, including corresponding ServiceBusSubscriber and ServiceBusOrchestratedSubscriber using the ServiceBusMessage.MessageId as the corresponding WorkState.Id.
    • Extended EventSubscriberArgs to support a new SetWorkStateDataAsync operation to enable the setting of the underlying WorkState data is a consistent manner where using the event subscriber capabilities.

@chullybun chullybun merged commit e683b4c into main Feb 6, 2024
2 checks passed
@chullybun chullybun deleted the v3.11.0 branch February 6, 2024 20:38
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