castle-windsor Questions
1
I have recently used NuGet to upgrade Castle Core to 5.0.0 and Castle Windsor to 5.1.1 in my existing ASP.NET Web Project. Castle Windsor was working perfectly before the upgrade.
Now whenever I ca...
Turnbuckle asked 17/5, 2022 at 9:19
2
Solved
What's the easiest way of programatically listing registered types in Castle Windsor?
Thanks
Mchenry asked 11/10, 2009 at 8:34
2
Solved
I have code in my global.axax:
protected void Application_Start()
{
WindsorContainer = new WindsorContainer();
WindsorContainer.Install(FromAssembly.InDirectory(new AssemblyFilter(AppDomain.Curr...
Marrissa asked 4/2, 2012 at 14:57
4
Solved
I ran into a problem where I had an Html.DropDownList in my view that would postback the selected value the first time I submitted the form, but each subsequent postback would only post data from t...
Sanctimony asked 24/11, 2009 at 19:14
4
this is partially a duplication of the same question which has not been yet answered. See here: How can I override a component registered in Castle Windsor?
Since I cannot comment or post any answ...
Ulpian asked 13/6, 2016 at 16:8
7
I am wondering why .Net IoC containers do not easily support multiple implementations for a single interface! May be I am wrong, but as far I have seen, frameworks like Ninject partially supports t...
Swop asked 29/7, 2012 at 10:1
4
Solved
I'm trying to do some testing with castle windsor involved, in one of my tests I want to check the windsor installers, so I check that the container can resolve my components given its interface.
...
Cyndycynera asked 25/4, 2011 at 18:20
5
Solved
I am getting an error while running a test. How do I solve this?
public class TestAppService : TestAppServiceBase, ITestAppService
{
private readonly ITestRepository _testRepository;
public Test...
Kimkimball asked 29/9, 2017 at 7:36
2
I'm trying to register AutoMapper 5.1.1 with CastleWindsor, but I don't know, where to properly call Mapper.Initialize().
AutoMapper profile:
namespace AutoMapper_DI.Mappings
{
public class WebM...
Legislation asked 23/9, 2016 at 13:56
4
Solved
How can I use Castle Windsor as an IOC instead of the default .net core IOC container?
I have built a service resolver that depends on WindsorContainer to resolve services.
Something like:
publi...
Die asked 6/12, 2017 at 10:56
1
In Windsor Castle 5 the LifestylePerWebRequest is not more supported and I cannot find any documentation (here are the release notes) for this breaking change. Also in older documentation it was no...
Acetamide asked 13/2, 2019 at 21:0
4
Solved
In Castle, I used to do the following to register types from a different assembly:
Classes.FromAssemblyNamed("MyServer.DAL")
.Where(type => type.Name.EndsWith("Repository"))
.WithServiceAllIn...
Scorpius asked 10/11, 2014 at 7:35
6
Solved
Say I have the following class
MyComponent : IMyComponent {
public MyComponent(int start_at) {...}
}
I can register an instance of it with castle windsor via xml as follows
<component id="s...
Tekla asked 17/9, 2008 at 21:23
5
Solved
I'm a long-time Windows developer, having cut my teeth on win32 and early COM. I've been working with .NET since 2001, so I'm pretty fluent in C# and the CLR. I'd never heard of Castle Windsor unti...
Serrulation asked 24/9, 2008 at 1:23
3
Solved
A Castle Windsor question:
Is it possible to register a class that has an internal constructor with the container?
Thanks
Joni
Charlena asked 3/3, 2010 at 10:57
7
Solved
When Instantiating a class, Windsor by default treats all public properties of the class as optional dependencies and tries to satisfy them. In my case, this creates a rather complicated circular d...
Maturate asked 7/10, 2008 at 14:6
6
Solved
Ultimately this has to do with setting up log4Net but generically the problem is not logging specific.
Generically what I am trying to figure out is how to do, in Microsoft Unity 2.0, something e...
Appreciate asked 27/7, 2011 at 14:46
2
Solved
Consider the following scenario of services and components in a sample C# console application
public interface IService { }
public class FooService: IService { }
public class BarService: IService...
Canopy asked 8/10, 2018 at 12:18
6
Solved
I am in the process of introducing a Dependency Injection framework into an existing WebForms application (using Castle Windsor).
I have pretty deep experience with DI, and tend to very strongly ...
Brakpan asked 20/1, 2012 at 20:24
2
Solved
I " ve got a project under .net core. I want to register Ef Core Context with Castle windosr But I couldn 't find a solution to EfCore Wireup context in .net core. Thank you.
Thetis asked 12/8, 2018 at 6:14
4
Solved
I have an MVC4 site using Castle Windsor that I want to add some WebAPI calls to, so I start digging around a little bit on the interwebs.
Now I don't know the ins and outs of IoC; I followed a tu...
Catamount asked 22/4, 2013 at 18:55
1
Solved
I've tried following advice from existing posts to make HttpRequestMessage available as a constructor dependency for services in Web API:
ASP Web Api - IoC - Resolve HttpRequestMessage
Resolving ...
Carolecarolee asked 14/6, 2018 at 10:48
1
Solved
I decided to use singleton in order to load some file when the application started and use this configuration throughout the app lifetime as this file is changed once in a year.
There is a singlet...
Etruria asked 8/5, 2018 at 0:24
2
Solved
I have IWindsorContaner which exists for the whole application lifetime. For Unittests it is possible to register mocks/stubs, etc. under their Type. When the test is finished and the fixture is di...
Trend asked 29/2, 2012 at 14:48
3
I am converting an existing ASP .Net Web API 2 project to use OWIN. The project uses Castle Windsor as the dependency injection framework with one of the dependencies set to use the PerWebRequest l...
Baboon asked 14/7, 2015 at 16:25
1 Next >
© 2022 - 2024 — McMap. All rights reserved.