If your client proxy is transient and injected into PWR component, it should 
get released at the end of each request.  Are you saying this is not happening?

On May 31, 2010, at 12:50 PM, Artur Dorochowicz wrote:

> Hello,
> 
> Due to the fact that WCF facility has rather limited documentation
> available, I'd like to ask here for some help about its usage on the
> client side.
> 
> My scenario is an ASP.NET MVC web application that uses a WCF service
> for which I have the service contract.
> Controller factory is based on Windsor - controllers are resolved and
> released by Windsor.
> I have the configuration in web.config and configure the service like
> this:
> 
> AddFacility<WcfFacility>();
> Register(
>       Component.For<IMyWcfService>()
>               .ActAs( DefaultClientModel.On(
>       
> WcfEndpoint.FromConfiguration( "name_of_configuration_in_web_config" )
>       ) ) );
> 
> Is it correct? And what benefits does the WCF facility offer me on the
> client side?
> 
> This configuration seems to work correctly as long as the resolved
> service client proxy is a dependency of transient components. But when
> it becomes a dependency of component with PerWebRequest lifestyle, the
> proxy seems to never be released, and after a couple of web requests I
> reach a limit of connections/clients on the service side and I start
> getting timeouts on calls to the service.
> Is such scenario supported? Am I doing something wrong?
> 
> Best regards
> 
> Artur Dorochowicz
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Castle Project Users" 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-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 [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-users?hl=en.

Reply via email to