IHttpModule Gotchas – The Init() Method Can Get Called Multiple Times (Images)

10 March 2010 - 11:35 PM / by Dominic Pettifer. 1 Image 3 Comments

Development Gotchas - When creating and registering IHttpModules, some people mistakenly think that only a single instance of the IHttpModule is created, and that the Init() method is only called once. I’ll explain how and why this is incorrect, and how this misunderstanding can lead to subtle bugs in your ASP.NET web application.

Images

  • HttpApplication context pooling with multiple requests

    HttpApplication context pooling with multiple requests

Random Image

HttpApplication context pooling with multiple requests

HttpApplication context pooling with multiple requests (from the blog IHttpModule Gotchas – The Init() Method Can Get Called Multiple Times )

Quick Poll

What is your DIP/IOC Container of choice?

Poll Vote
(see results)
View Comments (0) (See previous polls)

Latest Tweets

  • Red Bull gives you wings....that generate huge amounts of downforce #F1

    about 18 hours ago from Twitterrific
  • .vampire { -webkit-box-shadow: none; -webkit-box-reflection: none; } #cssjokes

    7:44 PM July 30th from Echofon
  • @edhenderson lol, lets get a trending topic going - .gangster .wrapper { color: #000; width: 150%; text-decoration: bling; } #cssjokes

    7:36 PM July 30th from Echofon
  • @weblivz I think the petition should be resubmitted but with security stuff taken out, as that's what the response purely focused on

    6:13 PM July 30th from Echofon
  • @weblivz I still think Chrome Frame can come to the rescue here, still keep their old browsers + legacy systems, no retraining costs etc.

    6:12 PM July 30th from Echofon

View Dominic Pettifer's Twitter page.