Scope of static variables in ASP.NET sites

后端 未结 3 479
南方客
南方客 2020-12-31 09:25

If running multiple ASP.NET applications in the same application pool, how many instances will I have of a class\' static variable?

  1. One per application pool?
3条回答
  •  一生所求
    2020-12-31 10:00

    I know that every static variable lives for the lifetime of the App Domain.

    So based on that, it will live per application pool process.

提交回复
热议问题