-
Notifications
You must be signed in to change notification settings - Fork 458
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
Split hosting extensions from Castle.Windsor.Extensions.DependencyInjection into separate package #625
Comments
Do you know how much code uses the Hosting package? I always wondered if it was just a little bit of code that could be provided as an example. |
As far as I can see only this code: These are nice-to-have extension methods for easily configuring Windsor on a HostBuilder. You'd use it like this: builder.UseWindsorContainerServiceProvider(myWindsorContainer);
// without HostBuilderExtensions:
builder.UseServiceProviderFactory<IWindsorContainer>(new WindsorServiceProviderFactory(myWindsorContainer)); |
Looks like Autofac has a separate package for it. We'd keep it in the same repo here. https://github.com/autofac/Autofac.Extensions.Hosting |
v6.0 has not yet been released if you wanted to get the change in before it goes out. |
I'll see if I can get create a PR for this next week |
I've created a PR for this. |
Thanks @ikkentim, sorry for the silence. |
Castle.Windsor.Extensions.DependencyInjection
contains a dependency to hosting related packages (Microsoft.Extensions.Hosting
). You however don't always need hosting when usingMicrosoft.Extensions.DependencyInjection.Abstractions
. It would be great if the hosting related functions could be split off into aCastle.Windsor.Extensions.Hosting
package.For example, I'm working on implementing Windsor for a front-end application which uses Microsofts DI abstractions. I'd prefer not to have hosting related dependencies in my front-end application.
#624 would reduce the pain, but the change suggested in this issue would be much better.
The text was updated successfully, but these errors were encountered: