castle-windsor Questions
4
Solved
(Related to this question, EF4: Why does proxy creation have to be enabled when lazy loading is enabled?).
I'm new to DI, so bear with me. I understand that the container is in charge of instantia...
Catacomb asked 29/2, 2012 at 15:11
1
Solved
I can't seem to be able to get the proper instance injected into a class ctor. Here is what I am trying to do:
class Program
{
static void Main(string[] args)
{
WindsorContainer container = new...
Leverett asked 8/3, 2013 at 12:3
2
Solved
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 ...
Pyretotherapy asked 11/9, 2009 at 12:59
4
In IOC's what does ResolveAll do?? I know that the offical answer is "Resolve all valid components that match this type." Does that mean that it will return any class that implements a given interf...
Annadiana asked 5/12, 2008 at 7:2
9
Solved
I am thinking about using Microsoft Unity for my Dependency Injection tool in our User Interface.
Our Middle Tier already uses Castle Windsor, but I am thinking I should stick with Microsoft...
Outstretch asked 29/9, 2008 at 14:28
2
After applying the Microsoft Security update on the 8th of January 2013 http://technet.microsoft.com/en-us/security/bulletin/ms13-004 we have started to experience failures in our CI builds on our ...
Sesquicentennial asked 29/1, 2013 at 8:16
1
Solved
I want to register one class with 2 interfaces in Castle.Windsor.
does this code work... Will I have only one instance for both interfaces...
Component.For<IEnvironment>().ImplementedBy<...
Cloudy asked 7/2, 2013 at 17:59
1
Solved
This code gives no error or warning during execution. but it ignores the console.read() function, i am newer with windsor. is it really a bug or the simple behavior of windsor ?
using System;
usin...
Crack asked 3/2, 2013 at 5:25
2
Solved
I have never used Windsor before but have used other DI frameworks, and I have got a rather strange issue at the moment.
I have a factory class which takes a string in its constructor, however whe...
Amylaceous asked 28/11, 2011 at 11:29
3
UPDATE:
In Windsor 2.5 the assembly name is Castle.Windsor not Castle.MicroKernel
I'm trying to deploy an ASP.NET MVC app to IIS7 and I'm getting this error:
Looks like you forgot to registe...
Beloved asked 30/9, 2009 at 15:6
1
Solved
I am comparing the possibilities for using services (in the sense of a process local component like in the Windsor IoC container) from the domain model.
I have 3 ways to achieve this:
Publishing...
Approve asked 7/1, 2013 at 12:12
1
I have been trying for three days to figure out this NHibernatefacility thing with Castle and wcf and it's really getting frustrating.
After solving a good dozen of errors, i have come to this one...
Brier asked 28/11, 2012 at 18:11
2
Solved
I am facing a problem of cyclic dependency when creating the following MVP design (for winforms) using windsor container.
My presenter depends on the view and model:
ConcretePresenter(IView view,...
Glazing asked 20/12, 2012 at 13:27
3
Solved
do any other .NET IoC containers provide equivalent functionality to the typed factory facility in Castle Windsor?
e.g. if I am using an abstract factory pattern in a WPF application:
public clas...
Montero asked 6/11, 2010 at 14:0
2
Solved
I have been investigating ways to inject the Log4Net ILog into classes using Castle Windsor. In most examples, I see where Castle Windsor can provide a "facilitator" that provides property injectio...
Ostrom asked 14/11, 2012 at 22:28
2
Solved
I am trying to set up Castle Windsor with ASP.NET WebAPI.
I am also using the Hyprlinkr package (https://github.com/ploeh/Hyprlinkr) and so need an instance of HttpRequestMessage injected in to on...
Hydrastis asked 19/10, 2012 at 15:39
2
Solved
In the ASP.NET Web API, HttpControllerContext instances provide a lot of information about the current environment, including the URI of the current request.
If a service relies on such informatio...
Apotropaic asked 1/6, 2012 at 17:17
1
Solved
It's generally accepted that passing an IoC container around your application and using it like a service locator is bad practice.
I prefer to use the container only in the composite root of my ap...
Isomerism asked 5/10, 2012 at 22:14
2
Solved
Not sure if this is possible or not.
I need to return the correct implementation of a service based on an enum value. So the hand-coded implementation would look something like:
public enum MyEnu...
Denominate asked 3/10, 2012 at 15:33
1
I come from the StructureMap world, where it is never necessary to release resolved transient objects.
I see that Windsor by defauly keeps track of any resolved transient objects and therefore pre...
Eisteddfod asked 23/10, 2011 at 21:7
2
Solved
I am using a castle windsor factory to instantiate an object based on the request url.
Something like:
public FooViewModel Get()
{
if (HttpContext.Current == null)
{
return new FooViewModel(...
Avlona asked 11/9, 2012 at 23:44
1
Solved
Does Castle Windsor permit registration of an open generic interface or do I need to register each possible typed instance separately?
Example - the below with types T,Z fails upon compilation unl...
Hominy asked 10/9, 2012 at 2:24
1
Solved
If I have a PerWebRequest object that has a wcf proxy dependency with a PerThread lifestyle, will the container
a) use the same proxy instance after the container auto-releases the
parent object?...
Sikko asked 11/6, 2012 at 17:29
2
I'm using Windsor to manage IoC for my controllers in a WebAPI project. I've got a DependencyResolver working nicely to resolve controller dependencies, but now I'm looking to inject dependencies i...
Natividadnativism asked 11/6, 2012 at 11:17
1
Solved
I'm new to AutoFixture, so I don't know if the following idea is going to make sense or be a reasonable thing to do. I've got an application that I'm in charge of integration testing, and it makes ...
Calculous asked 14/8, 2012 at 18:2
© 2022 - 2024 — McMap. All rights reserved.