Skip to content

Conversation

@StuartFerguson
Copy link
Member

Removed the ApplyUpdates method and integrated its functionality directly into AddProductToContract, AddTransactionFeeForProductToContract, DisableTransactionFeeForProduct, and CreateContract.
Refactored retrieval of ContractAggregate to use DomainServiceHelper.GetAggregateOrFailure for improved error handling. Updated checks for created aggregates to use newly retrieved instances. Added try-catch blocks for better exception management and ensured that changes are persisted with a save operation for ContractAggregate.

closes #851

Removed the `ApplyUpdates` method and integrated its functionality directly into `AddProductToContract`, `AddTransactionFeeForProductToContract`, `DisableTransactionFeeForProduct`, and `CreateContract`. Refactored retrieval of `ContractAggregate` to use `DomainServiceHelper.GetAggregateOrFailure` for improved error handling. Updated checks for created aggregates to use newly retrieved instances. Added `try-catch` blocks for better exception management and ensured that changes are persisted with a save operation for `ContractAggregate`.
@StuartFerguson StuartFerguson merged commit 85c9dfb into master Aug 19, 2025
9 checks passed
@github-actions github-actions bot deleted the task/#851_contract_domain_service_performance_changes branch October 19, 2025 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Verify Contract Commands are using Cached Estate Aggregate

2 participants