user5260143
user5260143

Reputation: 1098

mvc webApi, why application start again?

I work in durandal Project, which built on mvs web api.

However, some-time it arrived to function Application_Start (in Global.asax) again, at running time.

Why?! It must happen once, when first request arrives to server!

For example, in Application_Start I init some classes singlotone-intance, and they are initialized again! It's not good for my application!

Upvotes: 0

Views: 397

Answers (1)

user5260143
user5260143

Reputation: 1098

This is normal occurrence in web-application. If it not good for you, consideration the option of save data at your data-base.

Upvotes: 0

Related Questions