asp.net - HttpApplication.Init vs HttpModule.Init -


i trying understand why init method available in both httpapplication , httpmodule, , when use 1 on other.

you can have 1 application, can have multiple httpmodules within 1 application. modules used handle separate blocks of functionality can added application (few real life examples - elmah - handles error logging, identitymodule - handles impersonation, etc.). since can attach same module (lets error logging) different application (lets mycompany.crm, mycomany.publicweb, mycomany.intranet), makes sense handle initialization on own, intepended on application you're adding them to.


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -