Herman
Herman

Reputation: 3024

asp.net Garbage Collection Notifications

Has anyone implement this new feature in .net 3.5 SP1 in an asp.net environment? The only thing I can find the web is this, which is not an actual implementation.

Upvotes: 2

Views: 476

Answers (2)

Dominic Zukiewicz
Dominic Zukiewicz

Reputation: 8474

I guess one problem with notifying the Load Balancer is that once the GC is triggered, the CLR halts all threads in order to GC.

So even if your code could receive a notification, it is not going to be able to react to it.

Upvotes: 0

mfawzymkh
mfawzymkh

Reputation: 4108

in 3.5sp1, we have introduced 2 new APIs that tells you when a new Gen2 notification is approaching Check out http://msdn.microsoft.com/en-us/library/cc647167.aspx for more details.

Upvotes: 1

Related Questions