Update integration lib packages & cache reset api #597
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of work:
Was only going to add a simple endpoint to trigger cache reset across deployed instances.
Utilizing distributed mediatr lib to coordinate across instances.
This caused a larger nuget upgrade scenario, so the main workload here is related to the nuget upgrade.
This also solves the discovery service issue, which promotes integration lib upgrade.
MediatR lib needed to be upgraded which had breaking changes, deprecated the AsyncRequestHandler abstract type, requiring switch to IRequestHandler.
This change also impacted how requests without responses were handled. Behaviours needed updates as well as generic methods which cause ambigous signature issues (DispatchCommand).
Testing:
Needed to update fixtures due to changes in MediatR setup logic and introduction of new background services and integration which needed new mocks. Distributed mediatr have service bus integration which requires connection string. This is mocked with services doing nothing (if we need to verify distributed message handling a new mock will need to be created).
Checklist:
Should verify cache reset endpoint, to verify that distributed infra is set up correctly.