wcffacility

Wcf Castle Windsor

折月煮酒 提交于 2019-12-25 02:25:09
问题 I am using the Wcf Facility, (windsor 2.5.2) latest version from github repo as of last week. how ever it is not working throwing the following error (when the service starts up) Could not find a base address that matches scheme http for the endpoint with binding WSHttpBinding. Registered base address schemes are []. here is the setup var container = new WindsorContainer(); container.AddFacility<WcfFacility>() .Register( Component.For<IUnitOfWork>().ImplementedBy<UnitOfWork>().LifeStyle

IWcfPolicy - add message headers on the fly

三世轮回 提交于 2019-12-25 01:01:07
问题 Is it somehow possible to add header info (or querystrings) to a wcf request on the fly? I've been messing around a bit with the IWcfPolicy like this: var xmlObjectSerializer = new DataContractSerializer(typeof(string)); var addressHeader = AddressHeader.CreateAddressHeader("client", "http://tempuri.org/", "someValue", xmlObjectSerializer); var endpointAddress = new EndpointAddress(new Uri(url), new AddressHeader[] { addressHeader }); invocation.ChannelHolder.ChannelFactory.Endpoint.Address =

How can I register all my services with castle windsor wcf facility

谁都会走 提交于 2019-12-23 18:18:49
问题 Basicly I can register one service like this. Container.Register(Component.For<IMyService>() .AsWcfClient(new DefaultClientModel() { Endpoint = WcfEndpoint .BoundTo(new NetNamedPipeBinding()) .At("net.pipe://localhost/MyService") }) .LifeStyle.PerWebRequest); But I could not figure out how to register all my services with similar configuration. the thing I was hoping to run is this... Container.Register( AllTypes.FromAssemblyNamed("My.Server.MyContracts") .Pick().If(x => x.Name.EndsWith(

WcfFacility Sequence contains no elements

十年热恋 提交于 2019-12-23 03:07:32
问题 I keep getting a Sequence contains no elements error when trying to install my wcf services. here is the code in my global.asax: _container = new WindsorContainer(); _container.Register(Component.For<IWindsorContainer>().Instance(_container)) .AddFacility<WcfFacility>() .Install(Configuration.FromAppConfig()) .Install(FromAssembly.InDirectory(new AssemblyFilter(HttpRuntime.BinDirectory, "Web*.dll"))); here is my system.servicemodel section in web.config: <system.serviceModel>

Using Castle Windsor WcfFacility to create client endpoints

 ̄綄美尐妖づ 提交于 2019-12-18 13:25:44
问题 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

CastleWindsor 3.0 and DefaultServiceHostFactory.RegisterContainer()?

感情迁移 提交于 2019-12-10 12:44:44
问题 The following does not compile: DefaultServiceHostFactory.RegisterContainer(Container.Kernel); The static method does not seem to exist in Castle 3.0 - I checked the breakingchanges.txt and did not see this listed. What am I missing? 回答1: You don't need the call any more as it gets registered when you wire up the facility. container.AddFacility<WcfFacility>(); Is all you need, sweet :) This is not required: DefaultServiceHostFactory.RegisterContainer(Container.Kernel); nor is this Container

Using Client-Side Task-Based Operations with WCFFacility in Castle.Windsor

ぐ巨炮叔叔 提交于 2019-12-08 00:29:32
问题 I would like to take advantage of the new task-based operations for a WCF client. I am currently using the WCFFacility as follows: container.Register(Component .For<IAdminService>() .LifeStyle.Transient .AsWcfClient(new DefaultClientModel() { Endpoint = WCFHelpers.BasicHttp(settings.MaxReceivedMessageSize) .At(addr) })); where IAdminService is the ServiceContract class. All the MSDN articles about task-based operations refer to setting a 'task based operations' tick box when importing the

ravendb, castle IoC ,Wcf facility - doc session liefstyle

陌路散爱 提交于 2019-12-07 05:26:59
问题 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 {

Can I use WcfFacility with WCF Test Client?

折月煮酒 提交于 2019-12-06 13:41:54
问题 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,

Using Client-Side Task-Based Operations with WCFFacility in Castle.Windsor

偶尔善良 提交于 2019-12-06 11:04:34
I would like to take advantage of the new task-based operations for a WCF client. I am currently using the WCFFacility as follows: container.Register(Component .For<IAdminService>() .LifeStyle.Transient .AsWcfClient(new DefaultClientModel() { Endpoint = WCFHelpers.BasicHttp(settings.MaxReceivedMessageSize) .At(addr) })); where IAdminService is the ServiceContract class. All the MSDN articles about task-based operations refer to setting a 'task based operations' tick box when importing the service reference. But in the style I am currently using, there is no imported service reference because I