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

Sample Project

Feb 5, 2013 at 9: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.

Thanks,
Allen D.
Coordinator
Feb 6, 2013 at 3:21 PM
Hi,

There is now an example project available to download. See http://unitywcf.codeplex.com/releases/view/101494

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 3:27 PM
Thank you for this!