0

I would like to start a timer when the application is started in IIS.

Do you think that the best place is in Application_Start in Global.asax?

Thank you very much.

vcsjones
  • 138,677
  • 31
  • 291
  • 286
fiso
  • 1,375
  • 1
  • 14
  • 20

1 Answers1

1

it is a good place because in that way you can absolutely capture the moment the application pool is started, but this does not mean it has to exist there and not in a Singleton class, for example, which gets initialized from the Application_Start.

it really depends on where you will need to use that timer from later on.

Davide Piras
  • 43,984
  • 10
  • 98
  • 147