wcffacility

ravendb, castle IoC ,Wcf facility - doc session liefstyle

a 夏天 提交于 2019-12-05 10:14:10
What's the recommended lifestyle for raven doc session and store under a windsor ioc, wcf facility setup hosted in IIS? I keep seeing this error: Error TempPathInUse (JET_errTempPathInUse, Temp path already used by another database instance)` here is my setup: public class RavenInstaller : IWindsorInstaller { public void Install(IWindsorContainer container, IConfigurationStore store) { container.Register( Component.For<IDocumentStore>().ImplementedBy<DocumentStore>() .DependsOn(new { connectionStringName = "RavenConnectionString" }) .OnCreate(DoInitialisation) .LifeStyle.Singleton, Component

Can I use WcfFacility with WCF Test Client?

主宰稳场 提交于 2019-12-04 20:52:32
I have a WCF Service Library containing a custom ServiceHostFactory derived from DefaultServiceHostFactory. I can't get the test client to use this factory. I just get the "no parameterless constructor was found" error. Here's my hosting enviroment configuration: <serviceHostingEnvironment> <serviceActivations> <add service="TestService.WcfLibrary.TestService" relativeAddress="/TestService.svc" factory="TestService.WcfLibrary.TestServiceHostFactory, TestService.WcfLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/> </serviceActivations> </serviceHostingEnvironment> Note that I

Using Castle Windsor WcfFacility to create client endpoints

不问归期 提交于 2019-11-30 09:46:09
I have created three assemblies. A web site, a WCF service and a contracts assembly that holds the interfaces that the services implement. I would like to use Castle Windsor to create the services for me on the client (website) so that I do not have to have an endpoint in the web.config of the web site for each service that I wish to use. I would like to look at the contract assembly and get all the service interfaces in a namespace. Right now for every service I have something like the following when registering the components with the container. container.Register(Component.For