Project
Windsor
Priority
Major
Type
Bug
State
Fixed
Assignee
Unassigned
Subsystem
No subsystem
Fix versions
2.5
Affected versions
2.0 RTM
Fixed in build
Next Build
  • Created by   Mauricio Scheffer
    2 years ago (04 Mar 2010 12:13)
  • Updated by   Krzysztof Koźmic
    20 months ago (30 Aug 2010 19:18)
IOC-195 OptimizeDependencyResolution breaks startable facility
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
When registering a startable component with an unsatisfied dependency, and then this dependency is satisfied with a fluent registration, the startable component isn't started. This seems to be a bug in OptimizeDependencyResolutionDisposable, which disables the events needed for the kernel to realize that the dependency has been satisfied. Test case: http://github.com/mausch/Castle.InversionOfControl/commit/8320337199ef5ca1d4f8ecd723ef5104867c9ecb

Another issue with this is that by introducing OptimizeDependencyResolutionDisposable only in the fluent registration, the non-fluent registration can have a different behavior (like this bug).
Comments (1)
 
History
 
Linked Issues (?)
 
Krzysztof Koźmic
  Krzysztof Koźmic
10 May 2010 00:14
(2 years ago)
I want to push usage of single call to container.Install (and in it using only container.Register calls) and have Install-wide OptimizeDependencyResolution and an event IKernelEvents.InstallComplete that the facility could subscribe to and react to that single event instead of multiple component registered.

I want to also deprecate all AddComponent API.

Objections?