Severity: Warning
File: src/Servy.Core/Helpers/ServiceHelper.cs
Lines: 138–183
Description:
Unlike StartServices which collects errors into an AggregateException and continues, StopServices throws immediately on the first failure. If multiple services need to be stopped and the first one fails, the rest are never stopped.
Suggested fix:
Collect stop failures into a list and throw an AggregateException after attempting all services, matching the pattern used in StartServices.
Severity: Warning
File:
src/Servy.Core/Helpers/ServiceHelper.csLines: 138–183
Description:
Unlike
StartServiceswhich collects errors into anAggregateExceptionand continues,StopServicesthrows immediately on the first failure. If multiple services need to be stopped and the first one fails, the rest are never stopped.Suggested fix:
Collect stop failures into a list and throw an
AggregateExceptionafter attempting all services, matching the pattern used inStartServices.