microsoft / fhir-server

A service that implements the FHIR standard
MIT License
1.15k stars 492 forks source link

Watchdog cleanup #3814

Open brendankowitz opened 3 months ago

brendankowitz commented 3 months ago

Description

Replaces Timer with PeriodicTimer. Looking at the code overall PeriodicTimer is a better conceptual fit and it also natively async.

This pull request includes changes to the SQL retry service and SQL store client in the Microsoft.Health.Fhir.SqlServer project. The changes mainly involve the removal of generic logger types and the replacement of using statements with await using for asynchronous disposal of SQL connections and commands.

Changes to the SQL Retry Service:

Changes to the SQL Store Client:

Changes to the SQL Command Extensions:

Related issues

Addresses #3736 , AB#117180.

Testing

Describe how this change was tested.

FHIR Team Checklist

Semver Change (docs)

Patch|Skip|Feature|Breaking (reason)