Where is AutofacRequestLifetimeHttpModule registered?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
I am a newbie and trying to read the code. Got this question:

I didn't see anywhere to register AutofacRequestLifetimeHttpModule either in the code, config or attribute.

Can somebody help me point out how AutofacRequestLifetimeHttpModule is registered and Init is executed?

Thanks,
11 years ago
It's registered automatically by Autofac DLL. You can download its source code here
11 years ago
I only saw Autofac registered  it's own type RequestLifetimeHttpModule.

Still didn't find out how Nop's type AutofacRequestLifetimeHttpModule got registered.

Thanks
11 years ago
You're absolutely right. AutofacRequestLifetimeHttpModule is nopCommerce's class. Actually it's not registered as IHttpModule and used by ContainerManager for getting ILifetimeScope instance.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.