" since when using the factory we've already lost the clear graph boundary, so implicit scoping like this should not be supported."
I'm not sure I understand. Besides, I think you've a solid idea on what's scoping in your world. I'm not sure I'm on the same page... (communication breakdown, maybe?) Also, while you make reference to scenarios, there are no scenarios listed. Scenario would be "App needs to create DocWindow", something that I can easily relate to. That would improve communication of your proposal/ideas. Finally, I don't see typed factories as entry points to scope. I see a specific typed idiom instead. IMHO scopes should be properly designed, as they have major side effects on the system behavior. So I wouldnt use Func<T>, but something very explicit about its intention. Additionally, IoC Containers cannot be replacement for OO. Some things fit containers, some can't. This is just general advice that sparked after reading this: - Ensuring scoping works (can work?) across multiple threads - Ensuring scoping works across multiple objects. Going back to WPF application's example we may want to be able to gain access to current's top window's ISession from static typed factory residing in the root shell object. I've filled a patent based on the result of my research on containers + scoping. I'd think it's already out there, you should probably give it a read :-) 2011/3/10 Krzysztof Koźmic <[email protected]> > I added tests (in my fork) and discussion of potential usage of implicit > scoping and typed factories. My conclusion is, it can't be done but I'm > happy to be enlightened and convinced otherwise. > > > http://docs.castleproject.org/Windsor.Scratchpad-scopes-in-Windsor-codename-Wawel.ashx?NoRedirect=1&NS=Windsor > > Krzysztof > > On 09/03/2011 11:53 AM, hammett wrote: > > Interesting. Is there a variation that will allow a component to start/end > a scope in runtime? > > Suppose you have a MDI app. Each File | New Document is potentially > starting a new 'document' scope. > > > > 2011/3/8 Krzysztof Koźmic <[email protected]> > >> Hi, >> >> I created a site in the wiki where I'll throw my semi-structured thoughts >> and ideas for implementing one of the biggest new features for Windsor Wawel >> (aka vNext) - scoping. >> >> http://docs.castleproject.org/Windsor.Scratchpad-scopes-in-Windsor-codename-Wawel.ashx?NoRedirect=1&NS=Windsor >> >> I would really appreciate if you guys shared your thoughts and ideas on >> this (it's an open wiki - go wild, contribute to the brainstorming). >> >> Also make sure you click the small semi-hidden envelope icon in upper >> right corner to subscribe to notifications of changes to the site. >> >> >> >> >> Thanks in advance for all your ideas and contributions. If we get this >> done, we should be pretty much ready to release first preview. >> >> cheers, >> Krzysztof >> -- >> You received this message because you are subscribed to the Google Groups >> "Castle Project Development List" 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-devel?hl=en. >> > > > > -- > Cheers, > hammett > http://hammett.castleproject.org/ > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Development List" 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-devel?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Development List" 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-devel?hl=en. > -- Cheers, hammett http://hammett.castleproject.org/ -- You received this message because you are subscribed to the Google Groups "Castle Project Development List" 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-devel?hl=en.
<<image/png>>
