Questions tagged [wcffacility]

The WCF Facility allows for the use of the Windsor container for WCF Services.

The WCF Integration facility enables the benefits of runtime dependency injection offered by the Windsor container and its facilities. Examples of utilizing such features are data access layers or other external dependencies of a service. Furthermore, the services registered with the container can use other facilities, such as the logging or transaction management. Finally, any extensions (i.e., IServiceBehavior) to the services that are registered with the container will be automatically applied to all services registered with the container.

It is not here to replace WCF configuarion, and it deals specifically just with creating/disposing of services using Windsor. There are already good tools to configure WCF, and this approach takes full advantage of them.

60 questions
1
vote
2 answers

how to resolve a proxy class in Castle Windsor

I have a WCF service that I'm trying to resolve using Castle Windsor. The registration used to look like…
Jeff Hornby
  • 12,948
  • 4
  • 40
  • 61
1
vote
1 answer

NHibernate and WCF Facility working together. Rhino Common Nhrepository outdated?

I have been looking for a good example of WCF and NHibernate facilities working together, (one session per web request, etc) but all the tutorials i find are dated 2009 and older. I am afraid i may lose my time trying to implement all this when…
Pepito Fernandez
  • 2,352
  • 6
  • 32
  • 47
1
vote
0 answers

Hosting service using castle windsor wcffacility

I have a basic Contracts project: [ServiceContract] public interface IEchoService { [OperationContract] string GetUpper(string text); [OperationContract] string GetLower(string text); } Service project: public class EchoService :…
Null Reference
  • 11,260
  • 40
  • 107
  • 184
1
vote
1 answer

Using the Windsor NHibernateFacility in a Wcf Service with a custom service behavior for creating transactions instead of the Transaction attribute

I am trying to use the Windsor NHibernate Facility for the first time in a Wcf service and replace the current manual registration of NHibernate so that there can be a consistent approach across all services. Current working approach Previously I…
1
vote
1 answer

Castle WCF Facility | Windows Service Hosting

I’m trying to use Castle WCF integration facility in my WCF project, but got lost in the way. Can you please help me out? So, here is the situation: I have a WCF Service Library, which is hosted inside a Windows Service over TCP. Following is what…
Mike
  • 3,204
  • 8
  • 47
  • 74
1
vote
2 answers

Can I use WcfFacility with WCF Test Client?

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…
Ufuk Hacıoğulları
  • 37,978
  • 12
  • 114
  • 156
0
votes
1 answer

Proper error messages on registering wcf client components in Castle Windsor

I'm trying to get an error message when I try to register a component in Castle Windsor that points to WCF Service that has errors in the configuration. For registering the component I'm…
Ajadex
  • 2,319
  • 1
  • 20
  • 23
0
votes
1 answer

How do I avoid version conflicts using NServiceBus with Castle Windsor WcfFacility?

It appears the NServiceBus is built against Castle Windsor 2.0.0.0, whilst the WcfFacility needs to be built against 2.5.2. Is there any way I can run both NServiceBus and the WcfFacility in the same project? We're developing a network service that…
Dylan Beattie
  • 53,688
  • 35
  • 128
  • 197
0
votes
1 answer

Windsor Facility Error

Everytime I try to add a facility to my Windsor container instance, I see the following exception: Derived method 'Dispose' in type 'Castle.Facilities.WcfIntegration.WcfFacility' from assembly 'Castle.Facilities.WcfIntegration, Version=2.5.0.0,…
Sam
  • 770
  • 4
  • 15
0
votes
2 answers

Wcf Service PerCall WcfFacility

how can i get the WcfFacility to make my service Per call, I have tried Component.For().ImplementedBy().AsWcfService(new DefaultServiceModel()).LifeStyle.PerWcfOperation() however when I run the WCF Test client with out the…
dbones
  • 4,415
  • 3
  • 36
  • 52
0
votes
1 answer

Wcf Castle Windsor

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…
dbones
  • 4,415
  • 3
  • 36
  • 52
0
votes
1 answer

Windsor WCF Client for multiple endpoints

I have a service running on multiple different servers with very similar configurations. I want to be able to use Castle Windsor WCF Facility to generate a client for arbitrary endpoint addresses. public class ServiceFactory { public IService…
sconzey
  • 483
  • 5
  • 13
0
votes
1 answer

Windsor WcfFacility: Setting ServiceBehavior properties

I'm hosting a service using Windsor's WCF Facility, but I can't get UseSynchronisationContext and ConcurrencyMode set that one would normally do using the ServiceBehaviorAttribute. I've seen two options that apparently should work (but tried both to…
mycroes
  • 645
  • 8
  • 20
0
votes
0 answers

Adding runtimeknown property to wcf proxy created by WcfFacility in Castle Windsor

I am trying to create client proxies using the excellent wcf facility in Castle Windsor. However, I need to access the OperationContextScope when utilizing the facility to add a custom property. My approach fails at runtime with the following error:…
andersr
  • 98
  • 6
0
votes
1 answer

Castle Windsor WCF Facility Register all Clients with Custom ClientModel

I have a set of interfaces that I'd like to register as WCF clients in Windsor and have them all use WCF discovery to find endpoints. I was hoping to do something as simple as this: [TestMethod] public void TestMethod1() { var…
thebeekeeper
  • 364
  • 2
  • 12