Skip to content
New issue

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

Support LazyProxy #19

Open
azhe403 opened this issue Dec 11, 2021 · 3 comments · May be fixed by #20
Open

Support LazyProxy #19

azhe403 opened this issue Dec 11, 2021 · 3 comments · May be fixed by #20
Labels
feature New feature or request question Further information is requested
Milestone

Comments

@azhe403
Copy link

azhe403 commented Dec 11, 2021

Some problems like a Circular Dependency maybe solved by this lib.

https://github.com/cmendible/lazy-proxy-serviceprovider

Is possible support with this lib?

@enisn
Copy link
Owner

enisn commented Dec 11, 2021

Yeah, a proxy can be injected instead of the original object and while calling a method on the interface, so the proxy can resolve that dependency and invoke the method.

In a short term, I can't say it'll be included or not. It's not the main goal of this library. But It would be awesome.

All PRs are welcome by the way 😉

@enisn enisn added the question Further information is requested label Dec 11, 2021
@enisn enisn added this to the Backlog milestone Dec 11, 2021
@enisn
Copy link
Owner

enisn commented Dec 11, 2021

I'll take a look at that feature.

@enisn enisn modified the milestones: Backlog, v2.6 Dec 11, 2021
enisn added a commit that referenced this issue Dec 11, 2021
@enisn enisn linked a pull request Dec 11, 2021 that will close this issue
@enisn
Copy link
Owner

enisn commented Dec 13, 2021

I'm thinking about cleaner implementation. That library can be replaceable and it shouldn't be a dependency of the main project. I'm gonna create an extension named DotNurse.Injector.LazyProxy

@enisn enisn added the feature New feature or request label Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants