NuGet package doesn't add *ServiceFactory file
rhombuslabs opened this issue · 2 comments
rhombuslabs commented
@viceice
All of the instructions I've seen so far claim that Unity.WCF will add files to my WCF project. It adds no files, even on a clean project.
I'm using Visual Studio 2017 with a .NET Framework 4.7.2 WcfService project.
rhombuslabs commented
Really, I'd be quite satisfied if the Readme was updated with current instructions on using the package. Thanks.
viceice commented
Simply add a class which extends from UnityServiceHostFactory and set this as Factory in your svc file.
Then override the ConfigureContainer method to configure your unity instance.
Regards