Conditional dependency resolution in ASP.NET MVC using castle windsor
问题 I am trying to solve this case in our code where I need to resolve the dependency at runtime based on a specific condition, such as if certain query string value exist or not. Let say I have a controller AuthenticationController and I have authentication service having two flavours of it. public class AuthenticationController { private readonly IAuthenticationService authenticationService; public AuthenticationController(IAuthenticationService authenticationService) { this