以前一直认为HttpContext.Current是个静态变量,至少应该是[ThreadStatic],刚才用Reflector看了一下,发现错了,又是和Remoting有关。

public static HttpContext get_Current()
{
return (CallContext.GetData("HtCt") as HttpContext);
}

这里CallContext是System.Runtime.Remoting.Messaging.CallContext。有兴趣的朋友给解释一下?
posted on 2004-08-10 10:23  steeven  阅读(2664)  评论(2编辑  收藏  举报