bump
--
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 castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
If it is resolved once, yes, but not otherwise.
The problem is the otherwise. How do I do then?
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: castle-project-users@googlegroups.com [mailto:castle-project-users@googlegroups.com] On Behalf Of Krzysztof Kozmic
Sent: den 15 maj 2012 12:02
To: castle-project-users@googlegroups.com
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: castle-project-users@googlegroups.com [mailto:castle-project-users@googlegroups.com] On Behalf Of Henrik
Sent: den 9 maj 2012 00:47
To: castle-project-users@googlegroups.com
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 castle-project-users@googlegroups.com.
To unsubscribe from this group, send email to castle-project-users+unsub...@googlegroups.com.
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 castle-project-users@googlegroups.com.
To unsubscribe from this group, send email to castle-project-users+unsub...@googlegroups.com.
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 castle-project-users@googlegroups.com.
To unsubscribe from this group, send email to castle-project-users+unsub...@googlegroups.com.
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 castle-project-users@googlegroups.com.
To unsubscribe from this group, send email to castle-project-users+unsub...@googlegroups.com.
>> castle-project-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> castle-project-users+unsub...@googlegroups.com.
>> 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
>> castle-project-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> castle-project-users+unsub...@googlegroups.com.
>> 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
>> castle-project-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> castle-project-users+unsub...@googlegroups.com.
>> 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
>> castle-project-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> castle-project-users+unsub...@googlegroups.com.
>> 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 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 castle-project-users@googlegroups.com.
> To unsubscribe from this group, send email to
> castle-project-users+unsub...@googlegroups.com.
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 castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/OWZzvQz4ulcJ.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/1cGxiGW_4GEJ.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/UHZtRHTWnBwJ.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/FFDorfSwwI8J.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
Hi guys,
I am using windsor to resolve object in differen thread all the time and as lond as it is not UI component it works fine. I do not have a problem with that.
Now disposing it is a different story as from my experience it very much depends on configuration and your solution.
Krzysztof please correct me if i am wrong but if your container track references than if you want to dispose your object you should use relese method in container. Than container will have a chance to dispose your object and all dependencies with in a scope of your object. If you do not release it will keep reference to your object and gc will not be able to collect it.
Mariusz
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/THyMuObKtuwJ.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.