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

Correct way to run with StructureMap #35

Closed
petterl opened this issue Jan 2, 2019 · 8 comments
Closed

Correct way to run with StructureMap #35

petterl opened this issue Jan 2, 2019 · 8 comments

Comments

@petterl
Copy link

petterl commented Jan 2, 2019

What is now the correct way to run with structremap in the net core version?
The ObjectFactory method is no longer in the configuration object.

@wallymathieu
Copy link
Owner

As long as StructureMap can be used as an IServiceCollection you should be fine. See Build constructor by using something like StructureMap.Microsoft.DependencyInjection

@wallymathieu
Copy link
Owner

Seems like the docs could be improved.

@petterl
Copy link
Author

petterl commented Jan 3, 2019

All examples of using StructureMap.Microsoft.DependencyInjection returns an IServiceProvider that then is used for getting the Services. and the build doesn't take a IServiceProvider, just a IServiceCollection.

@wallymathieu
Copy link
Owner

And the question then is how do you make it work in a web app? My guess is that if you have a working solution for that, then you should be able to make a PR with either a documentation fix or update of this library to support your use case.

@wallymathieu
Copy link
Owner

wallymathieu commented Jul 13, 2019

@petterl how is it going?

@petterl
Copy link
Author

petterl commented Jul 14, 2019 via email

@wallymathieu
Copy link
Owner

Looks like they are sunsetting StructureMap in favor of Lamar. I'll need to review the different alternatives for modern .net apps.

@wallymathieu
Copy link
Owner

There are preview packages that make it easier to use Isop together with other dependency injection frameworks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants