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

Service Locator #11

Open
js-pellsoftware opened this issue Aug 22, 2023 · 1 comment
Open

Service Locator #11

js-pellsoftware opened this issue Aug 22, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@js-pellsoftware
Copy link

I know it's supposed to be an "anti-pattern" but it seems easy enough to just use a service locator. That's what we used to do in our domains and I never remember an issue. It doesn't seem like it would matter if you don't know there is a service checking names, it only matters that the names aren't unique and you need to fix that

@ardalis
Copy link
Owner

ardalis commented Aug 24, 2023

I don't think I have a service locator example - I could add one or you're welcome to submit a PR.

I don't think I have an example of a purely static approach, either, which I wouldn't recommend but would certainly be another similar option.

@ardalis ardalis added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants