Reloading Windsor Container config file automatically
Is there a way you can tell windsor container to reload a component if its configuration is changed in the XML file without having to restart the web application? ...
Is there a way you can tell windsor container to reload a component if its configuration is changed in the XML file without having to restart the web application? ...
Hi! I'm using Castle Windsor in my project. Some registered components are intercepted. Because the components are registered through interfaces, Castle Windsor creates interface proxies (Castle Windsor creates a standalone type which implements the interface and delegates to the real implementation by using composition). Unfortunately ...
I will have the following components in my application DataAccess DataAccess.Test Business Business.Test Application I was hoping to use Castle Windsor as IoC to glue the layers together but I am bit uncertain about the design of the gluing. My question is who should be responsible for registering the objects into Windsor? I have a coup...
I have successfully setup castle windsor using an xml configuration file and everything works fine. The only problem is that on a method I need Windsor to pass an existing instance to the constructor so I used container.Kernel.AddComponentInstance<IMyClass>(MyClassInstance); before the Resolve method but that does not work because Win...
I am wiring up my first SubSonic 3 application (in an ASP.NET MVC 1.0 front-end) and am looking at Rob's SimpleRepository. I'm using Castle.Windsor as an injection framework. In my application startup, I configure Castle to bind a SubSonic SimpleRepository to a SubSonic IRepository. Nothing complicated there. However, the SimpleRepo...
I am using Castle Windsor to manage controller instances (among other things). My controller factory looks like this: public class WindsorControllerFactory : DefaultControllerFactory { private WindsorContainer _container; public WindsorControllerFactory() { _container = new WindsorContainer(new X...
I have an app, modelled on the one from Apress Pro ASP.NET MVC that uses castle windsor's IoC to instantiate the controllers with their respective repositories, and this is working fine e.g. public class ItemController : Controller { private IItemsRepository itemsRepository; public ItemController(IItemsRepository windsorItems...
I have a Client Table with One to Many relationship with Contact Persons. I've mapped the two classes for NHibernate as In Client Class <?xml version="1.0" encoding="utf-8" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="MyAssembly.Core" namespace="MyAssembly.Core.Domain" > <class name="Client" table="CompanyXClie...
Is there a method for Castle Windsor to inject multiple concrete implementations of a single interface into a constructor? I want to do something like this: class Some { public Some(IService[] services) { services.Each(s => s.DoSomething(this)); } } Note, at this level I do not have access to the IWindsorContainer and ...
I'm trying to introduce dependency injection into an existing Web Forms application. The project was created as a Web Site project (as opposed to a Web Application Project). I have seen samples where you create your global class in global.asax.cs and it looks something like this: public class GlobalApplication : HttpApplication, ICont...
I'm trying to deploy an ASP.NET MVC app to iis7 and am getting the error: Looks like you forgot to register the http module Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule Add '<add name="PerRequestLifestyle" type="Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.MicroKernel" />' to the <httpModules> section o...
We are evaluating to upgrade Castle Windsor Container to Version 2, which was released in May this year. By this time I would expect the community to have made some experiences about the new release... My main concerns are: Is it worth the effort to upgrade to v.2? (any major important new functionality or bug fixes?) Is the migration...
I've just started using both Linq to SQL and Windsor Castle IoC container for a new web app and, although things seem to be working OK in preliminary tests, I could really do with a sanity check on it. I was running into problems when I tried to pull objects out of the database using Linq in different parts of the app and then updating ...
I have a Castle Windsor component, that depends on a string. The string needs to be determined at runtime, based on another string, which is constant and can be set in the component configuration. How do I wire this up using Castle Windsor ? The problem is general, but the specific scenario I need it for is a class that takes the full ...
Hi everybody, the thing is I have an issue with Castle.Core.dll. I've installed RC3 from their website, so I have 1.0.3.0 version of DLL. I`m studying MVC framework using Steve Sanderson's book (which is great, btw) and running samples. Project compiled successfully, all was running, but suprisingly today I've got this runtime exception...
I run this at the application Start Up public class ConfigurationFacility : AbstractFacility { private readonly List<string> configuredComponents = new List<string>(); protected override void Init() { Kernel.ComponentRegistered += OnComponentRegistered; // add environment configurators } private void OnC...
Hi, What's the easiest way of programatically listing registered types in Castle Windsor? Thanks ...
Hi I have asked this on the castle list as i'm using the nh facility but it just dawned on me to ask it here too :) sorry for the cross posting. I'm using the nh facility to configure the following setup: i have 1 database which stores generic report configuration. and another which stores the actual report data. i also have 1 proje...
Currently, I'm trying to use the WindsorContainer as a mean to get rid of Singletons in my program. After some testing, I realised, that I need a way to keep the WindsorContainer throughout my program, but how? The documentation isn't that good. Could anybody give me an example of a way to use Castle Windsor to create a useable Container...
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 'controllerName' parameter in the CreateController(RequestContext requestContext, string controllerName) method. Needless to say these are not controlle...