castle-windsor Questions

2

Solved

Having seen how NInject can do it and AutoFac can do it I'm trying to figure out how to inject dependencies into MVC ActionFilters using Castle Windsor At the moment I'm using an ugly static IoC h...
Ballerina asked 16/2, 2009 at 13:39

1

Solved

I am using log4net and in one class require logging to a RollingFile appender, but then in another class, I wish to log to the event log + rolling file + console appender. What is the best practic...
Uncial asked 5/11, 2009 at 1:59

1

Solved

I am using Castle.Windsor as an IOC. So I am trying to resolve a service type in the constructor of an HTTPHandler. I keep receiving this error, "Constructor on type: "Namespace.type" not found." ...
Manchester asked 3/11, 2009 at 14:1

2

Solved

I have created an ASP.NET MVC application and am trying to use Castle Windsor as my IOC However, when the controllers are trying to resolve I am getting 'Content' and 'Scripts' into the 'controlle...

3

I'm fairly new to Castle Windsor and am looking into the in's and out's of the logging facility. It seems fairly impressive but the only thing i can't work out is where Windsor sets the Logger prop...

2

I am trying to introduce DI/IoC programming methodology into our development group, but one of the developer asked the following question: Why do we need it? Is there any concrete example that can...

4

Solved

I was following Steven Sanderson's 'Pro ASP.NET MVC Framework' book. On page 132, in accordance with the author's recommendation, I downloaded the ASP.NET MVC Futures assembly, and added it to my ...
Incus asked 31/8, 2009 at 13:30

2

Solved

Is is possible with the Castle Windsor Container to have one component implement two different interfaces and then when resolving it to return the same component instance? For example; var windsor...
Penelopepeneplain asked 17/8, 2009 at 11:37

2

Solved

I'm trying to assemble a list of good documentation sources for Windsor Castle (apart from analyzing its source code). I'm especially interested in documentation about the fluent configuration API....
Algol asked 27/7, 2009 at 12:46

1

Solved

I would like to log when a component (interface and implementation) is registered to my container. What is the best way of doing this? I found the IKernelEvents interface that looks promising but ...
Elect asked 22/7, 2009 at 19:46

2

Do I have to close the ISession's that are generated by Castle's ISessionManager for NHibernate? How do I handle transactions with those ISession's? I'm still quite new to NHibernate. Edit: I woul...

1

Solved

I have a property on my classes for logging service. private ILogger logger = NullLogger.Instance; public ILogger Logger { get { return logger; } set { logger = value; } } And I have this in m...

1

Solved

I have a class that takes an array of interfaces in the constructor: public class Foo<T1, T2> : IFoo<T1, T2> { public Foo(IBar[] bars) { ... } } My container registration looks a...
Guanidine asked 29/6, 2009 at 12:13

1

Solved

I have a custom membership/roles provider that I use in my MVC controllers that I also want to have accessible to ASP.NET MVC, so I can use AuthorizationFilters, etc. Since so many people have impl...

2

Solved

I have what is probably a simple question here about Castle Windsor, which I haven't been using for very long. I'm trying to register a service with a specific instance that will be the singleton i...

1

Solved

ASP.NET MVC 1.0 project templates include an AccountController class, which supports constructor injection: public AccountController(IFormsAuthentication formsAuth, IMembershipService service) {...

1

Solved

I have an interface declared as IRetrievable<T, idT> where T is the retrieved type and IdT is the argument passed. How do I configure the castle windsor IoC container to resolve that to a...
Submarginal asked 24/5, 2009 at 0:40

2

Solved

When using auto-registration with castle windsor I see people doing things like _container.Register( AllTypes.Pick().FromAssembly(Assembly.GetExecutingAssembly()) .WithService.FirstInterface())...
Fondness asked 17/5, 2009 at 22:40

1

Solved

I have the following: public interface ISubject { ... } public class Subject<T> : ISubject { ... } public class MyCode<T> { ... pulic void MyMethod() { var item = container.Resol...
Delorasdelorenzo asked 16/5, 2009 at 13:15

2

Solved

I have a project where my business layer is constructed using DI, but I'm trying to go an additional step and use Windsor to manage object construction. Let's just say I have a pre-existing data l...
Clareclarence asked 13/5, 2009 at 15:33

2

Solved

I'm looking for an .xsd schema file to drop into my Visual Studio directory to provide intellisense for the xml configuration file for the Castle Windsor IoC container. I've looked in the downloade...
Goldberg asked 21/9, 2008 at 15:47

1

Solved

I have an IAddress class with a few properties. I then have a concrete type that implements this interface. This concrete type has a couple of different constructors I could use. How can I pass par...

1

Solved

I would like to write a test that just ensures that all components registered to my WindsorContainer can indeed be resolved. Anyone have any ideas how I can do that?
Casaleggio asked 8/4, 2009 at 20:11

2

If I registered several components with Windsor. IAnimal provides BigAnimal IPerson provides SmellyPerson IWhale provides BlueWhale etc.. pretty standard component registeration all the above ty...
Christcrossrow asked 7/1, 2009 at 16:6

3

Solved

Recently I noticed my application appears to be eating memory that never gets released. After profiling with CLRProfiler I've found that the Castle Windsor container I'm using is holding onto objec...
Drypoint asked 25/9, 2008 at 12:16

© 2022 - 2024 — McMap. All rights reserved.