If anyone is interested I pushed my initial stab at this to a branch in my fork:
https://github.com/kkozmic/Castle.Windsor/tree/scoping

For the glimpse of the API and usasge see the tests:
https://github.com/kkozmic/Castle.Windsor/blob/scoping/src/Castle.Windsor.Tests/Lifestyle/ScopedLifestyleTestCase.cs
https://github.com/kkozmic/Castle.Windsor/blob/scoping/src/Castle.Windsor.Tests/Lifestyle/ScopedLifestyleImplicitGraphScopingTestCase.cs

The implementation at this point is based on code by Craig which is based on a proof of concept I did last year, but it will evolve to better integrate with other changes I've made earlier to the inner workings of Windsor and to support other scenarios.
As always contributions in any form are welcome.


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] <mailto:[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
    
<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]
    <mailto:[email protected]>.
    To unsubscribe from this group, send email to
    [email protected]
    <mailto:castle-project-devel%[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.

<<image/png>>

Reply via email to