Skip to content

ServiceProviderEngineScope should aggregate exceptions in Dispose rather than throwing on the first. #86426

@swsyn

Description

@swsyn

I understand that there is CA1065 rule

but

We run into errors during disposing some services in our Blazor Server App. We can wrap all our code in Dispose with try/catch but there can be third party services. It comes quite difficult to find the reason of some services were not disposed (also because Blazor's CircuitHost logs _disposeFailed with Debug level).

It seems difficult to assume that Dispose() will never throw an exception somewhere.

Metadata

Metadata

Assignees

Labels

area-Extensions-DependencyInjectionfeature-requestin-prThere is an active PR which will close this issue when it is mergedneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsideration

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions