diskdetector-net icon indicating copy to clipboard operation
diskdetector-net copied to clipboard

[Enhancement] List's should be returning an IEnumerable, so that exceptions can be handled by the caller

Open Smurf-IV opened this issue 5 years ago • 1 comments

Because of Defect #1 then I cannot get even 1 drives information, therefore if the following was an IEnumerable return: image

Then I could handle the exception and still get more drive INfo's, Also being an IEnumerable means that slower drives (Or ones that may be put to sleep) have a chance to spin up and then return the SMART info etc.

Smurf-IV avatar Dec 29 '19 15:12 Smurf-IV

Note: the existing API's can still exist by calling the new IEnumerable API's with .ToList() so that only 1 code route exists.

Smurf-IV avatar Dec 29 '19 15:12 Smurf-IV