Can you define the lifestyle in the registration instead?
BTW https://github.com/castleprojectcontrib/Castle.Windsor.Lifestylesalready
has per-session implemented, with it you can write:

container.Register(Component.For<Whatever>().LifeStyle.PerWebSession());

--
Mauricio



On Tue, Mar 29, 2011 at 9:22 AM, TigerShark <[email protected]>wrote:

> Hi,
>
> I would like to create a custom lifestyle attribute (using
> HttpContext.Session), but I can't create my own attribute inherit from
> CustomLifestyleAttribute as it is sealed :(
>
> Now I have to do:
> [CustomLifestyle(typeof(PerSessionLifestyleManager))]
>
> Instead of just:
> [SessionLifestyle]
>
> Am I on the wrong path or is there an explanation for this design
> decission?
>
>
> Kenneth
>
> --
> 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.

Reply via email to