This project has moved. For the latest updates, please go here.

Sample Project

Feb 5, 2013 at 8:29 PM
Hello there. I am in process of wiring up Unity.WCF for refactoring of a small WCF project that is going to grow in complexity. As I am new to Unity (and to an extent, WCF) are there any sample projects available that show not only the confirgurations but the default usage? Even though i have followed the instructions on the site and am able to compile, I am getting stuck in how and where to call the created container object from within the main .svc.

Allen D.
Feb 6, 2013 at 2:21 PM

There is now an example project available to download. See

You do not want to be calling the container from within svc. Instead, add any dependencies to the svc constructor and unity will automatically resolve them. See the example project for details.
Feb 6, 2013 at 2:27 PM
Thank you for this!