castle-windsor
How to Inject Log4Net ILog implementations using Unity 2.0
Ultimately this has to do with setting up log4Net but generically the problem is not logging specific.[详细]
2023-03-23 20:03 分类:问答Castly Dynamic Proxy - Get the target method's return value
When proxying an object and intercepting a method using castle dynamic proxy, is it possible to get the return value of the target method? I have tried using the following methods,[详细]
2023-03-22 19:51 分类:问答Castle Windsor Transient Disposables
I know this has been discussed ad nauseum...but I have an issue with the way Windsor is tracking Transient IDisposable objects.[详细]
2023-03-22 15:21 分类:问答Why use IKernel over IWindsorContainer?
I have seen in several code examples where people have used IKernel rather than use IWindsorContainer.Why is this?[详细]
2023-03-22 13:41 分类:问答Castle.Windsor: passing a dependency through 2 typed factories
Types: public interface IWidgetFactoryFactory { IWidgetFactory CreateFactory(); } public interface IWidgetFactory { FooWidget CreateFoo(Foo model); }[详细]
2023-03-22 08:16 分类:问答How to log objects (structured data) with log4Net and Windsor Integration
In the past I have use the Log4Net ILog interface and custom database appenders to log objects to a database.This is very useful for capturing contextual information such as the machine name, current[详细]
2023-03-21 22:54 分类:问答Castle Windsor Referencing a Service in a Framework Library
I have been googling for ages today and yeste开发者_C百科rday and am completely frustrated with Castle Windsor.I am trying to use DI to inject a custom membership provider into my controller class.The[详细]
2023-03-21 14:27 分类:问答should the NServicebus CastleWindsorBuilder register the bus into the container
I have the following code: public class MessageEndpoint : IConfigureThisEndpoint, AsA_Server, IWantCustomInitialization[详细]
2023-03-21 13:33 分类:问答Injecting HttpContext.Current.Session in legacy code using Castle Windsor
tl;dr: In a legacy app, culture info is stored in HttpContext.Current.Session[\"culture\"]. How do I introduce DI with Windsor here, so that when running the application still gets and sets culture in[详细]
2023-03-20 19:11 分类:问答How can I create a unit test that verifies that all fluent validators can be resolved by Windsor?
I am using FluentValidation in my application to verify my entities, but I have come up with a little issue.My validation factory is setup to resolve validation classes from Winds开发者_StackOverflowo[详细]
2023-03-20 16:49 分类:问答