if it's IDisposable it will get disposed

On 13/05/2012 10:24 AM, Henrik Feldt wrote:

bump

*From:*[email protected] [mailto:[email protected]] *On Behalf Of *Henrik
*Sent:* den 9 maj 2012 00:47
*To:* [email protected]
*Subject:* Windsor w/ BackgroundFactoryMethod

I'm looking to initialize a component on a background thread, so I hacked something together. It looks like this:

https://gist.github.com/2640092

It works really nice, except that of course the component isn't being disposed unless something else that depends on it is resolved, meaning there's a live component needing disposing which isn't being disposed.

Where would I jack into Windsor 3 to provide a piece of logic stating, that for this type of handler/component/burden (?) when the container/kernel is being disposed, also perform a resolve and then release call, for this component?

--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/GZa5mIdsbKgJ. To post to this group, send email to [email protected] <mailto:[email protected]>. To unsubscribe from this group, send email to [email protected] <mailto:[email protected]>. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "Castle 
Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to