Hi,
I have a Logger module that creates aspnet Controller-specific Logger instances for the constructors of the Controllers.
For this I have something like this:
public class LogModule : Module
{
protected override void AttachToComponentRegistration(IComponentRegistry componentRegistry, IComponentRegistration registration)
{
...
registration.Preparing += InjectViaConstructor;
}
...
}
In the "old"
ASP.NET this worked fine, however, using
asp.net core, the AttachToComponentRegistration method is not called for Controller types.
For other types it is still called.
Can you please advise how to workaround this? Do I miss some configuration maybe?
Thanks,
Tamas Meszaros