castle-windsor Questions

3

The following code is for demo purposes only. Lets say i have 2 components (businessService, and dataService), and a UI class. UI class needs a business service, businessService needs a dataServi...
Contention asked 11/10, 2010 at 9:23

1

Solved

Long ago, I made a little project wherein I hoped to learn about Castle Windsor. I put it aside (before really learning all that much) for quite some time. I just opened it up again now, and update...
Lammastide asked 18/12, 2017 at 21:16

2

Solved

I am currently undertaking a conversion, from to the use of Ninject, to the current release of Castle Windsor for a simple C# .NET application. For the most part, the conversion has gone well and...
Vienna asked 17/11, 2009 at 3:23

3

Background: I've used Castle Windsor with Installers and Facilities according to the Castle Windsor tutorial with earlier versions of MVC (pre-6) and WebAPI. ASP.NET (5) Core has included some D...

1

My team tried some time ago to start using to Castle Windsor (3.2.0) for IoC goodness. Our trial runs on development boxes went peachy, but when we tried to run the code on the production server, i...
Agley asked 26/10, 2013 at 13:35

3

Solved

I am getting started with SignalR, and it works great once everything is configured. However, almost all the applications that I work on use Castle Windsor, so it would be great to be able to use t...

2

Solved

I understand the concept behind DI, but I'm just learning what different IoC containers can do. It seems that most people advocate using IoC containers to wire up stateless services, but what about...

2

I use Castle Windsor, but I guess this applies to all DI containers... I often find myself creating internal helper classes and injecting these into other classes. (Actually Windsor doesn't suppor...
Wireworm asked 20/7, 2017 at 7:55

2

I have a class that I proxy it with Castle Dynamic Proxy. I want to add some custom Attributes to proxy methods (which is not defined in proxied class). Is this possible. I want this because I wan...

3

Solved

Here is a code excerpt from AspComet project that works with Autofac. public MessageBus(IClientRepository clientRepository, Func<IMessagesProcessor> messagesProcessorFactoryMethod) { this.c...
Balfour asked 8/4, 2010 at 13:40

1

I've came up with some solution on which my IoC/DI container (Castle Windsor) is claiming that there's a cyclic dependency tree. And it's true. But I'm not that sure that this cycle is that harmful...

1

Solved

I am using a Castle Windsor Typed Factory. In our registration code it is set up so it can create a Transient component: container.AddFacility<TypedFactoryFacility>(); container.Register(Com...
Hackler asked 28/10, 2016 at 15:2

3

Solved

I am completely new with IoC/windsor. I started with Google to learn it, but unfortunately, I haven't got proper documentation which could be easier for me to understand. so I came here with such t...
Cracksman asked 2/2, 2013 at 16:51

5

Solved

I am trying to wire up dependency injection with Windsor to standard asp.net web forms. I think I have achieved this using a HttpModule and a CustomAttribute (code shown below), although the soluti...
Hennahane asked 16/11, 2008 at 11:20

6

Solved

I'm trying to get log4net integration for Castle Windsor working. I wrote my class with an public property of type ILogger and took the configuration in my app.config like following. <configur...
Orly asked 19/2, 2010 at 15:11

3

Solved

I try to inject log4net in a ILogger property of my service class but the property is always NULL! I've seen this topic but it doesn't help me! How can I get Castle Windsor to automatically injec...
Armidaarmiger asked 3/5, 2011 at 15:48

1

Solved

I'm new to asp.net core. What I'm trying to do is to build multi projects solution and use dependency injection to pass interfaces between projects. What I know is that in ASP.NET core project we h...
Borrego asked 22/10, 2016 at 19:55

1

Shortly speaking I am trying to link Castle Windsor container with Unitycontainer. Let me explain the context: I have a project in which for very long time it used castle windsor. A few days ago, ...
Epimorphosis asked 5/10, 2016 at 11:38

4

Solved

I've written an interface which is implemented by multiple classes. I want to write a Service class which will have all the registered implementations injected into its ctor. The only solution I c...
Staford asked 4/5, 2012 at 15:53

3

I use the following method as described in the following answer to create an instance of a mapper: var platformSpecificRegistry = AutoMapper.Internal.PlatformAdapter.Resolve<IPlatformSpecificMa...
Gargan asked 16/3, 2015 at 15:16

1

Solved

namespace DynamicInterception { public class Calculator { public virtual int Div(int a, int b) { try { return a / b; } catch (Exception ex) { Console.WriteLine(ex.Message.ToString()); r...
Busey asked 18/8, 2016 at 8:56

6

Solved

I feel like this is something I should already know, but I'm just not firing on all engines today... I have a base class with a single ctor that takes an implementation of an interface as it's onl...
Max asked 25/5, 2009 at 19:5

1

Solved

I have a project that uses Castle Windsor for a DI container. Initially it was a small project so I have been registering each class individually, however the project is now growing so I would lik...
Bugeye asked 7/7, 2016 at 10:18

4

While registering components in Castle Windsor, how do we bind specific implementation of an interface to a component that has a dependency on that interface. I know in advance which implementation...
Renown asked 2/8, 2013 at 3:57

2

Solved

I would expect the following to produce two separate instances when using the typed factory facility. using System; using Castle.Facilities.TypedFactory; using Castle.MicroKernel.Registration; usi...
Sixtynine asked 13/6, 2016 at 13:55

© 2022 - 2024 — McMap. All rights reserved.