Autofac Log4Net Integration

I was looking at the Log4NetIntegration tab on the Autofac wiki ( http://code.google.com/p/autofac/wiki/Log4NetIntegration ), and I had problems setting up using version 2.4.

I really want to achieve what to keep track of the stream :

"... register N services that all depend on ILog and have Autofac that do the right thing by supplying an instance of the registrar for each type declaring a dependency.

There seems to be differences in how this happens in the new version. In particular, IModule implements a different Configure method than the example in the stream.

public void Configure(IComponentRegistry componentRegistry) {} 

as noted

 public void Configure(IContainer container) {} 

I'm new to Autofac, so I'm not sure where to go from here. Would thank for any help.

Thanks,

Steve

+4
source share

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


All Articles