Windsor Castle Trace Type Permission

Is there a way to keep track of what Castle Windsor does when type resolving?

I am looking for the name TraceSource or log4net (etc.) the name of the logger. If this does not exist, where is the best connection to the infrastructure to provide my own logging code?

We believe that we installed the same build / configuration of our software on two different virtual servers (both servers created from the same image), and one of them “works” and the other does not work.

In the event of a failed deployment, our own logs show that the component that is expected to be introduced by others is null. On another machine, the magazines show that everything is great.

I get lost as to why this might happen, and searched to trace the lock container permission code.

EDIT: Launching Castle Windsor Release 2.0 on .NET 3.5 SP1

Thanks.

+3
source share
1 answer

You can try connecting to the kernel event DependencyResolving:

container.Kernel.DependencyResolving += (componentModel, dependencyModel, dependency) => {};

Or adding ISubDependencyResolver:

container.Kernel.Resolver.AddSubResolver(new MyDependencyResolver());
+2
source

Source: https://habr.com/ru/post/1713339/


All Articles