In castle windsor, when registering instances with a singleton lifecycle, is there a way to eagerly instantiate them (rather then having them initialized the first time they are injected)?
Update:
I figured some more details would be helpful here:
- These instances contain some initialization code that would be advantageous to run at startup time, that's why I'm interested in doing this.
- I'm registering quite a few of these instances using
AllTypes.Pick()
, so I'd prefer a solution that didn't involve me manually resolving each instance from the container seperately after I've built it up.