It works as expected.

Windsor never touches your object.

@K

On 16/05/2012 10:34 PM, Henrik wrote:
Here: https://gist.github.com/2710007

On Tuesday, 15 May 2012 22:27:42 UTC+2, Krzysztof Koźmic wrote:

    I'm not sure I understand.

    Do you have a failing test to demonstrate it?

    On 16/05/2012 6:06 AM, Henrik Feldt wrote:

    If it is resolved once, yes, but not otherwise.

    The problem is the otherwise. How do I do then?

    *From:*[email protected]
    <mailto:[email protected]>
    [mailto:[email protected]
    <mailto:[email protected]>] *On Behalf Of
    *Krzysztof Kozmic
    *Sent:* den 15 maj 2012 12:02
    *To:* [email protected]
    <mailto:[email protected]>
    *Subject:* Re: Windsor w/ BackgroundFactoryMethod

    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]>
    [mailto:[email protected]
    <mailto:[email protected]>] *On Behalf Of *Henrik
    *Sent:* den 9 maj 2012 00:47
    *To:* [email protected]
    <mailto:[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 <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
    <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
    <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]
    <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
    <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]
    <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
    <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]
    <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
    <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 view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/cjyCuX8UGfgJ. 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