Does Castle Windsor have an equivalent to Unity\'s BuildUp() whereby you can decorate class properties with attributes and have the container pass in values to an existing object instance?
Assume a legacy class and method structure like below public class Foo { public void Frob(int a, int b) {
I\'m having the following code: @Path(\"stores\") class StoreResources { private ServerConfig config; @GET
I know, this probably wins the award for longest and most confusing question title.Allow me to explain...
I know interfaces cannot define constructors. What is the best practice to force all classes implementing an interface, to receive their dependencies in a uniform contract. I know ints possible to inj
TL;DR: How can I consolidate logic shared by two custom ModelBinder implementations into a single base class, when both implementations rely on Autofac to inject a (common) dependency into them?
We have a quite common object in our application. In this case, we\'ll call it a Ball. Balls work fine, but in some configurations they act differently. It is currently set up like this:
I have a question regarding dependency injection pattern. My question is... If I go for constructor injection, injecting the dependencies for my class, what I get is a \"big\" constructor with many pa
I have a specification that validates codes. It looks like the following: public ClassificationSpecification : ISpecification<Classification> {
I am using Cactus to test a servlet which has an injected ejb (EJB 3.0) using @EJB annotation. The servlet is working fine when executed as part of the web application but while running the cactus tes