How to keep ASP.NET assemblies in AppDomain alive?

后端 未结 3 1549
情深已故
情深已故 2020-11-27 12:00

Scenario: I\'ve an n-Tier enterprise ASP.NET application deployed using Web Deployment Projects. All tiers produce independent assemblies that is consumed b

3条回答
  •  感动是毒
    2020-11-27 12:23

    One of the advantages of ASP .net is the posibility to create static (shared) instances of objects.

    To avoid the necessity of an external process you can create an static timer in (per example) global.asax which calls for a page on the domain with a simple WebRequest. On this way the site keeps alive himself until a manual reset of the pool is done.

提交回复
热议问题