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
0
votes
1 answer

WcfFacility: controlling service lifestyle

Registration example: container.Register(Component.For().ImplementedBy().AsWcfService(new DefaultServiceModel().Hosted()).LifestyleTransient()); .svc: <%@ServiceHost language="C#" Debug="true"…
Marius
  • 9,208
  • 8
  • 50
  • 73
0
votes
1 answer

Castle WcfFacility Publishing MEX Endpoints

I am writing a simple WCF Service and hosting it within a console application. I know the service is functioning, because a simple client can perform operations exposed on the service. If I point the Wcf Test Client to my service, I receive the…
Chris Mancini
  • 330
  • 1
  • 3
  • 14
0
votes
1 answer

Castle Windsor WCFFacility compression

In our current project we are using Castle Windsor to configure WCF on a .NET 4 Application. As the data we are moving back and forth may grow we would like to have some sort of compression (Espessially from client to server). Searching for this on…
0
votes
1 answer

castle wcf facility set serviceBehavior configuration name in code

I have several services which I want to register dynamically instead of having an entry for each in the app.config, smiliar to the following example.
DELUXEnized
  • 1,228
  • 16
  • 22
0
votes
1 answer

IWcfPolicy - add message headers on the fly

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 =…
0
votes
1 answer

Castle Windsor WCF Facility doesn't work in release mode when code optimizations or full-pdb are disabled

I develop a project that uses Castle Windsor WCF Integration Facility as DDD architecture. There are a single container project, single domain project, several implementation projects and an executable console. Dependency tree can be shown like…
Onur Gazioğlu
  • 501
  • 2
  • 12
0
votes
1 answer

Error resolving service using Windsor (3.2.0.0) WcfFacility in ASP.NET MVC3

Still finding my way with Castle.Windsor and the WcfFacility, but this ones got my head scratching. I'm want Windsor to inject the WCF client where it sees that dependency in my repository. I've added a service reference in Visual Studio and added…
Neil
  • 2,688
  • 1
  • 23
  • 32
0
votes
1 answer

Providing both WS/Rest endpoints for hosted services using WCFFacility

We are using WCFFacility to setup services from hosted (IIS 7.5) environment. What we need is to provide two endpoints for each service, WSHttp for .NET clients and WebHttp for everyone else. Is this possible? The code we use: _container.Register( …
Kostassoid
  • 1,870
  • 2
  • 20
  • 29
0
votes
1 answer

Using the IChannelActionPolicy to build a ChannelReconnectOnTimeoutPolicy

I'm trying to recreate the sample provided on the castle windsor wiki about channel action policies (found here: http://docs.castleproject.org/Windsor.WCF-Facility-Channel-Action-Policy.ashx ) but i can't seem to find IChannelActionPolicy interface…
0
votes
1 answer

Lazy load and Session Closed with NHibernate while using Windsor WCF Facility

i running into this situation. I see many developers here are facing similar scenarios but there are still a couple of details i would like to point out. I have the typical situation where i have a collection of child objects. I am adding more…
Pepito Fernandez
  • 2,352
  • 6
  • 32
  • 47
0
votes
1 answer

How to get WcfFacility and Wcf global exception handling working?

I have deployed my service and attached Visual Studio to the process to debug in one Visual Studio instance, and in another I have a client console test application that I run in debug mode, I can see both service methods that I call executed in the…
OutOFTouch
  • 1,017
  • 3
  • 13
  • 30
0
votes
1 answer

WcfFacility and Sequence contains no elements error?

I have wcf library with service contracts and implementations. [ServiceContract] public interface IServiceProtoType { [OperationContract] Response GetMessage(Request request); [OperationContract] String…
OutOFTouch
  • 1,017
  • 3
  • 13
  • 30
0
votes
1 answer

Windsor WCF facility and typed factories

My question has to do with the WCF and typed factory facilities that is provided by Windsor. I am quite new to the IoC container concepts and especially facilities but started looking into it after evaluating a project we wrote a while back. The…
Johannes
  • 1,095
  • 6
  • 17
0
votes
1 answer

WCF Attribute injection using an IOC Container

Using ASP.NET MVC I am able to replace the FilterProvider as so var oldProvider = FilterProviders.Providers.Single(f => f is FilterAttributeFilterProvider); FilterProviders.Providers.Remove(oldProvider); FilterProviders.Providers.Add(new…
0
votes
1 answer

registring a wcf service with Castle Windsor

I have a very simple service which works fine when not using Castle (which shows that the other codes are correct). I changed my svc file to the following: <%@ ServiceHost Service="Reporting.WebService.ReportingWebService"…
mans
  • 17,104
  • 45
  • 172
  • 321
1 2 3
4