Skip to content

Resolve DI bug found whilst testing with Screenplay - #65

Merged
craigfowler merged 1 commit into
masterfrom
feature/proxy-gen-di
Nov 7, 2026
Merged

craigfowler merged 1 commit into
masterfrom
feature/proxy-gen-di

Conversation

@craigfowler

Copy link
Copy Markdown
Member

Has no issue #. The problem here is that when using ProxyGenerator with Reqnroll's BoDi container, BoDi is unable to instantiate an instance because it has multiple public constructors which have the same count of parameters (and no constructors with more parameters). So, this switches to manually constructing it, to avoid that ambiguity. It's a singleton, so there's no harm in doing that.

Has no issue #.  The problem here is that when using
ProxyGenerator with Reqnroll's BoDi container, BoDi is
unable to instantiate an instance because it has
multiple public constructors which have the same count
of parameters (and no constructors with more parameters).
So, this switches to manually constructing it, to avoid that
ambiguity.  It's a singleton, so there's no harm in doing that.
@sonarqubecloud

sonarqubecloud Bot commented Nov 7, 2026

Copy link
Copy Markdown

@craigfowler
craigfowler merged commit 051aebb into master Nov 7, 2026
3 checks passed
@craigfowler
craigfowler deleted the feature/proxy-gen-di branch November 7, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant