views:

21

answers:

1

We are using unity to resolve the WCFService and the good practice of WCF says close the client once done.

But if we are using unity when and how to close WCFServiceClient?

Thanks

A: 

I assume that unity provides a proxy to you? Can you use a using statement on the get from unity?

using(var proxy = GetProxyFromUnit()){
   ...
}

Type of thing?

Preet Sangha