castle-windsor
Castle: using an existing (not single) instance for a lower-level dependency
I have a model roughly like this: public interface IUnitOfWork { } public class UnitOfWork : IUnitOfWork { }[详细]
2023-03-20 05:30 分类:问答Resolving a list of components as a constructor argument
Say I have an interface to define formatting reports: pu开发者_Go百科blic interface IFormatter { string Name {get;}[详细]
2023-03-19 06:52 分类:问答How to add a type forward to an existing Castle Windsor registration
I\'m currently registering a bunch of stuff at one point in my initialisation sequence Container.Register(AllTypes.FromAssemblyContaining<MyAssembly>()[详细]
2023-03-19 02:09 分类:问答DynamicParameters in .config file
I\'m in a situation, where I need to do something similar to the following: public static class mystaticclass[详细]
2023-03-19 01:27 分类:问答Castle Windsor - Injecting IActionInvoker Implementation Issue
I am trying to use the approach from this article, but I am missing something - I am currently getting an error within WindsorControllerFactory.GetControllerInstance when it tries to resolve IActionIn[详细]
2023-03-19 00:54 分类:问答Where to find Castle.MicroKernel.dll
This was answered once, but the download site has since changed (apparently) since then. I can开发者_如何学Pythonnot find Castle.MicroKernel at all. 2.51 can no longer be downloaded and its not in 2.5[详细]
2023-03-18 07:06 分类:问答Using Castle Dynamic Proxy - Possible to control and/or remove interceptors
I made a simple test of the Castle Dynamic Proxy library: public class Printer { public virtual void Write(string msg)[详细]
2023-03-17 21:07 分类:问答How do I tell Windsor to error if it can't resolve a property?
Say I have the following classes pu开发者_如何学编程blic class TestA { public string Blah { get; set; }[详细]
2023-03-17 09:28 分类:问答Castle Windsor filter optional installers
Is there开发者_StackOverflow社区 a way to filter installers when using IWindsorContainer.Install( IWindsorInstaller[] )?[详细]
2023-03-17 03:09 分类:问答Avoiding Service Locator Antipattern with legacy app not designed for IOC
I have read often that Service Locators in IOC are an anti-pattern. Last year we introduced IOC (Ninject specifically) to our application at work. The app is legacy, it\'s very big and it\'s fragmen[详细]
2023-03-16 20:06 分类:问答