Hi all, I've a small problem and couldn't find a solution In my WCF app (using WcfFacility) I've 2 families of components: - The services => Transient (PerCall) - The manager ==> custom scope (PerCompany <http://docs.castleproject.org/(S(sgex5w45y1suwnquu1b0gd55))/Windsor.Implementing%20custom%20scope.ashx> scope) (PerCompany means 1 component for each company, shared across all webservice calls, and users belong to companies.)
They both need a dal component to be injected by the container. The dal component is registered using an hybrid lifestyle: PerWCFOperation, and if not available then Transient. The problem: *STEP1*: A user makes his 1st call to the webservice: 1) The service is instantiated, the dal component is created 2) A manager is instantiated. As the wcf operation context is available, the same dal component is used (the one created above) 3) The service process the call, return the value 4) The service is destroyed, the dal component is destroyed *STEP2*: The same user makes his 2nd call to the webservice: 1) Same: service created, dal component created 2) Manager already exist for this company, the same instance (used in the 1st call) is retrieved ==> CRASH: The manager use a dal component disposed (STEP1.4) So how could I configure the container to use a Transient dal component for the managers ? Thank you for your help! Fabrice -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/castle-project-users. For more options, visit https://groups.google.com/groups/opt_out.
