Hi,
You should not use Autofac.Integration.Wcf.AutofacServiceHostFactory directly in your .SVC file.
Create class inherited from AutofacServiceHostFactory, override CreateServiceHost(..) method where you should setup your Autofac container and register everything you need in WCF service’s constructor.
Then use this class as factory in .SVC file.
--
Oleg
--
You received this message because you are subscribed to the Google Groups "Autofac" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/autofac/-/ZDdsgryHDRUJ.
To post to this group, send email to aut...@googlegroups.com.
To unsubscribe from this group, send email to
autofac+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/autofac?hl=en.
Hi,
Wiki says that here: http://code.google.com/p/autofac/wiki/WcfIntegration#WAS_Hosting_and_non-HTTP_Activation
And this method works for any type of WCF service (both HTTP and non-HTTP bindings).
--
Oleg
--
You received this message because you are subscribed to the Google Groups "Autofac" group.
To view this discussion on the web visit https://groups.google.com/d/msg/autofac/-/hdLbnV2SkPMJ.
--
You received this message because you are subscribed to the Google Groups "Autofac" group.
To view this discussion on the web visit https://groups.google.com/d/msg/autofac/-/Au8BHN-fIBcJ.
--
You received this message because you are subscribed to the Google Groups "Autofac" group.
To view this discussion on the web visit https://groups.google.com/d/msg/autofac/-/YDoenuQuiFUJ.
--
You received this message because you are subscribed to the Google Groups "Autofac" group.
--
You received this message because you are subscribed to the Google Groups "Autofac" group.
To view this discussion on the web visit https://groups.google.com/d/msg/autofac/-/1Yljmqq9LjcJ.
--
You received this message because you are subscribed to the Google Groups "Autofac" group.
To view this discussion on the web visit https://groups.google.com/d/msg/autofac/-/-jpwb12ZdK0J.