ministryofjustice / CFO-CaseAssessmentTrackingSystem

About HMPPS Creating Future Opportunities (CFO) - Case Assessment and Tracking System (CATS). Used to ratify the payments to non-government organisations who have been commissioned to deliver externally funded programmes by HMPPS CFO to offenders.
https://www.CreatingFutureOpportunities.gov.uk
MIT License
3 stars 2 forks source link

Do not make mediatr calls inside onparametersset #59

Open carlsixsmith-moj opened 4 months ago

carlsixsmith-moj commented 4 months ago

Make sure mediatr calls are carried out in inside the oninitializedasync method. See the change linked below for an example of where being in parameters set causes an error.

See fix below

https://github.com/ministryofjustice/CFO-CaseAssessmentTrackingSystem/commit/b76f2f7584d7ef77840fb5cd67f5f7a65d4d56a8#commitcomment-144143550

smellilac commented 4 months ago

There are no more mediatR calls left in the project inside the OnParametersSetAsync() method.