We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider the following
public class Foo { [Dependency] public IService Service { get; set; } }
It would be nice if this were weaved to be the equivalent of:
public class Foo { private IService C<>_service; [Dependency] public IService Service { get => C<>_service ?? GlobalDI.GetService<IService>(); set => C<>_service = value; } }
This would allow unit tests an opportunity to inject a test double without interfering with AutoDI functionality.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Consider the following
It would be nice if this were weaved to be the equivalent of:
This would allow unit tests an opportunity to inject a test double without interfering with AutoDI functionality.
The text was updated successfully, but these errors were encountered: