I recommend that you follow the instructions in the first section of the WCF integration wiki page .
The only note about this implementation is that UseWcfSafeRelease calls ICommunicationObject.Close() when a service instance is issued. From my point of view, this is bad because it blocks until the web call completely processes all the buffers, and in some cases blocks the user interface stream (in Silverlight). I'd rather call ICommunicationObject.Abort() , because if I release an instance of the component, it means that I no longer need its processes. However, I am using the following version of the RegistrationExtensions class:
Although, if you like it more, you can use Autofac's built-in integration code on the client side.
source share