/// <summary>
        ///   Constructor
        /// </summary>
        /// <param name="configFile">XML configuration file to initialise from</param>
        public PropertyResolvingWindsorContainer(string configFile)
            : base(new XmlInterpreter(configFile))
        {
            Interpreter = new PropertiesInterpreter(configFile);

            Kernel.AddSubSystem(PropertiesSubSystem.SubSystemKey, new PropertiesSubSystem(Interpreter));
        }
Exemple #2
0
 /// <summary>
 /// Initializes this instance. Must be called, before you can work with the instance.
 /// </summary>
 public void Initialize()
 {
     Kernel.AddSubSystem(SubSystemConstants.NamingKey, new AutoMockingNamingSubSystem(this));
     Kernel.AddFacility("AutoMockingFacility", new AutoMockingFacility(this));
     Kernel.ComponentModelBuilder.AddContributor(new NonPublicConstructorDependenciesModelInspector());
     Kernel.ComponentModelCreated += Kernel_ComponentModelCreated;
 }
 public void SetSubSystem()
 {
     subSystem = new DefaultDebuggingSubSystem();
     Kernel.AddSubSystem(SubSystemConstants.DebuggingKey, subSystem);
 }
Exemple #4
0
 protected override void AfterContainerCreated()
 {
     Kernel.AddSubSystem("scope", new ScopingSubsystem());
 }
        /// <summary>
        ///   Constructor (initialises the <see cref="IWindsorContainer" /> from the app.config/web.config
        ///   file)
        /// </summary>
        public PropertyResolvingWindsorContainer()
        {
            Interpreter = new PropertiesInterpreter();

            Kernel.AddSubSystem(PropertiesSubSystem.SubSystemKey, new PropertiesSubSystem(Interpreter));
        }
 protected override void AfterContainerCreated()
 {
     Kernel.AddSubSystem("scope", new ScopingSubsystem(new ThreadScopeAccessor()));
     Container.AddFacility <TypedFactoryFacility>();
 }
Exemple #7
0
 protected override void Init()
 {
     Kernel.ComponentRegistered += OnComponentRegistered;
     Kernel.AddSubSystem(SubSystemConstants.NamingKey, new NamingSubsystemForDefault(defaults));
 }