Be Explicit
Silverlight Duplex Polling and null HttpContext.Current
Using these two break points, I confirmed that we have a usable session state object in httpcontext.Current when we first received message from underlining channel, however when the user code is invoked for that same message it became null.

I ran across this and it should have been obvious. The call will return the initial message and set the current context to null while my async work will still be continuing.

There’s nothing really nefarious going on. Just something to keep in mind.

Posted via email from Adam Hathcock’s Life in Software | Comment »