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
2
votes
0 answers

Async calls to WCF services using Castle WCF Facility - issue with thread principal "inheritance"

I'm using Castle WCF Facility to perform async calls to WCF services, e.g. public void Start() { // original thread svc.BeginWcfCall(x => x.GetData(), OnAsyncResult, null); } public void OnAsyncResult(IWcfAsyncCall asyncCall) { …
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
2
votes
1 answer

Castle Windsor WCF and System.TypeLoadException' occurred in mscorlib.dll

I have a self hosted WCF service and I use Castle Windsor as DI container. I'm getting this exception: System.TypeLoadException occurred _HResult=-2146233054 _message=GenericArguments[0], 'System.ServiceModel.ServiceHostBase', on …
Michal
  • 1,324
  • 2
  • 16
  • 38
2
votes
3 answers

Changing ConcurrencyMode

I'm using Castle Windsor WCF Facility. The docs say: If you are switching from WCF activation to Windsor's WcfFacility, please make sure to remove the ServiceBehavior attribute from service type. How can I then control the concurrency mode? In…
dzendras
  • 4,721
  • 1
  • 25
  • 20
2
votes
1 answer

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

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() .LifeStyle.Transient .AsWcfClient(new…
Terry Coatta
  • 595
  • 4
  • 14
2
votes
2 answers

Castle Windsor WcfFacility error. forgot to register component?

I am trying to get Castle Windsor to create my WCF using WcfFacility. I followed this tutorial. http://www.codeproject.com/Articles/426770/Dependency-Injection-in-WCF-using-Castle-Windsor but it doesn't seem to work for me. I am getting the…
Pepito Fernandez
  • 2,352
  • 6
  • 32
  • 47
2
votes
1 answer

Castle WCF Integration Facility

I’m trying to use Castle WCF integration facility in my project. I followed instructions from the castle official site http://docs.castleproject.org/Windsor.WCF-Facility-Registration.ashx But I couldn't make it work. Here's my code and…
ayk
  • 1,407
  • 2
  • 19
  • 26
1
vote
2 answers

WcfFacility Sequence contains no elements

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().Instance(_container)) …
user156888
1
vote
1 answer

error resolving WCF service using WCF facility

I keep getting the following error: Method not found: 'Void Castle.MicroKernel.ComponentActivator.ComponentActivatorException..ctor this is from the following initialization code in global.asax: private void ConfigureContainer() { …
user156888
1
vote
1 answer

Where I could get Castle WCF facility version for Castle Windsor 2.5.2?

I have researched, but cannot find it anywhere. Nuget package and latest source on GitHub are updated to work with Windsor 3.0.0.
blackened
  • 65
  • 1
  • 7
1
vote
1 answer

WCFFacility and WVF 4.0 REST

How do you use the Windsor-Castle WCFFacility with the WCF 4.0 REST services ? How you you make the link to the factory, when you don't have the .svc file anymore? TIA Søren
smolesen
  • 1,153
  • 3
  • 11
  • 29
1
vote
0 answers

Multiples extensions for one component

I have the following installer: var endPoint = WcfEndpoint.FromConfiguration("IExternalService"); //Add Authentication Token endPoint.AddExtensions(new ExternalServiceEndpointBehavior()); container.Register( …
Pablo
  • 11
  • 2
1
vote
1 answer

Castle Windsor throws 'Scope cache was already disposed.' in SignalR Hubs

We are developing a web application based on .NET 4.5.1 MVC 5.2.2 OWIN WebApi 2.2 SignalR 2.2.0 Castle.Windsor 3.3.0 Wcf Integration Facility 3.3.0 For resolving the controllers we use ControllerFactory class which was described in the page…
1
vote
0 answers

C# - Castle WCF Facility - How to properly setup client side OperationBehavior + WcfEndpoint.FromEndpoint usage

I was playing with wcf facility and trying to setup DataContractResolver but I couldn't find any example... In the end I make it work .. not sure this is ok though .. Questions (code below) Is this the right way to accomplish behavior…
gustavomick
  • 115
  • 1
  • 9
1
vote
1 answer

Castle.Windsor Intercept WCF operation return type

Given this operation contract: Public Interface IService1 Function GetData(ByVal composite As CompositeType) As CompositeType End Interface I create a WCF Client using the Castle.Windsor…
pietervp
  • 225
  • 1
  • 7
1
vote
0 answers

castle windsor wcf service and DependencyResolverException

I use the AsWcfService() to host my WCF service. When I get an DependencyResolverException because one component is misconfigured, the container somehow swallows the DependencyResolverException. It even does not show up in the ouptut window. My…
DELUXEnized
  • 1,228
  • 16
  • 22