How does Response.IsClientConnected work under covers?

How does Response.IsClientConnected work under covers?

+5
source share
2 answers

A good way to find out is to use the .NET Reflector and examine the property Response.IsClientConnected. It allows you to decompile and parse .NET assemblies. This is an important tool in the arsenal of .NET developers.

+1
source

Taking Phaedrus advice, I used Reflector to view the code in System.Web. It looks like this property calls the built-in methods in webengine.dll.

This method seems to be called in IIS6: EcbIsClientConnected (http://forums.iis.net/t/1187030.aspx)

This method seems to be called in IIS7: MgdIsClientConnected

Not particularly helpful .; -)

0

All Articles