castle-windsor
Pooled Custom Lifestyle for Windsor that blocks
I have a requirement for a service.The requirement states that I must get up to N instances of a service.If no instances are available block/wait until one is released and then return the available in[详细]
2023-03-26 02:30 分类:问答Castle Windsor: How to pass commandline args to multiple services?
I want to pass command line args (ie. string[]args) to two different services. I tried a lot of things, closest is the code below.[详细]
2023-03-25 23:16 分类:问答Help with Windsor and Repository and Unit of Work patterns
I have these interfaces: public interface IUnitOfWork { IPersonRepository People { get; } IBookRepository Books { get; }[详细]
2023-03-25 22:02 分类:问答Castle Windsor Setting log level when logging to console
I\'m new to Castle Windsor and am struggling to setup the initial log level of ConsoleLogger. The documentation gives some hints for log4net but is silent about logging to console.[详细]
2023-03-25 14:19 分类:问答Caliburn.Micro - resolving ViewModels from IoC container using Castle.Windsor
I\'m using 开发者_高级运维Caliburn.Micro to build a composite UI app, and have decided to use Castle Windsor to build ViewModel objects, so that any services they need to operate can be injected autom[详细]
2023-03-25 13:21 分类:问答castle windsor: array of complex types from config
I have a requirement to initialize a list of complex types from config. Ideally I\'d have in windsor.config a list开发者_开发问答 of object definitions with all of the values for the properties defi[详细]
2023-03-25 02:56 分类:问答Controllers, in different Areas, with the same name. Can Castle Windsor handle this?
Let\'s say I have two controllers with the same name (i.e., HomeController).The first is in the standard Controller directory (~\\Controllers) and the second is in an Area (~\\Area\\AreaName\\Controll[详细]
2023-03-24 21:02 分类:问答windsor component for is not working as transient
We are using windsorto register a instance for the IUnitOfWorkinterface. UnitOfWorkContainer.Current is a static method which returns an instance of IUnitOfWork.[详细]
2023-03-24 09:58 分类:问答Repository: Examples for a Decorator / Repository pattern in C#
I had the wrong idea of how to create a repository.I created a single repository for each Entity that would CRUD using an ORM, which worked very well.However, I needed more and didn\'t know how to do[详细]
2023-03-24 07:53 分类:问答Castle Windsor Registration - AddAdditionalInterfaces() to implementation UsingFactoryMethod()
Given: public class IFoo { } public class IBar { } public class FooImpl : IFoo { } Why 开发者_如何学编程does this work:[详细]
2023-03-24 05:22 分类:问答