Open martinothamar opened 2 weeks ago
Nevermind, this doesn't actually work... Working on a new suggestion
I think the correct approach would be to have a shared factory for all extension point interfaces, that are registered as a Scoped
service and retrieves services from a IServiceProvider
(that inherits the scope). That way we can also add telemetry span around the GetRequiredService
call to catch potentially slow constructors written by users.
@martinothamar I don't a useful opinion or contribution to this discussion, unfortunately. It would be great to get a summary of the solution at some point though, after the details have been worked out.
Failed conditions
24.3% Coverage on New Code (required ≥ 65%)
33.33% Condition Coverage on New Code (required ≥ 65%)
Really like the attribute plus DiagnosticAnalyzer approach. No objections.
Description
Proposal for solution
Related Issue(s)
757
Verification
Documentation