-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
[BUG] Splat.SimpleInjector - not possible to do a setup. #597
Comments
relates to #240 |
You need to change AllowOverridingRegistrations to true in the Options property of your container. Although you can soleve your exception at this stage, you will face another problem on another stage.
|
There is another bug with ActivationException: No registration for type IEnumerable could be found. There is, however, a registration for IActivationForViewFetcher; Did you mean to call GetInstance() or depend on IActivationForViewFetcher? Or did you mean to register a collection of types using Container.Collection.Register? Please see https://simpleinjector.org/collections for more information about registering and resolving collections. |
Might be worth making a new issue about that found bug. |
Hi Guys! To "solve" problems with collection, i decided to treat every dependency as a collection dependency. So far so good... all works but to be hones, i have no clue about possible performance issues. Also, in order to make ReactiveUI initialization to work, i had to create some kind of intermediate "dummy" container which collect's all the initializations dependencies. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
It's not possible to use SimpleInjector as a DI container because of sole "Resolves" of the ReactiveUI during initialization.
Steps To Reproduce
Splat.SimpleInjector (9.5.49)
RxUI (11.5.35)
In line:
resolver.InitializeReactiveUI();
System.InvalidOperationException
exception occurs.The problem occurs because in
RxApp
static constructor there'sSplat.LogHost.Default
used - and it callsLocator.Current.GetService<ILogManager>()
on the container.And problem occurs because of the first use of "GetInstance" method on the SimpleInjector - it's sealed.
Expected behavior
Allow to use SimpleInjector.
Environment(please complete the following information):
The text was updated successfully, but these errors were encountered: