码迷,mamicode.com
首页 > Web开发 > 详细

从代码看 asp.net 处理过程

时间:2015-01-30 14:51:28      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:

从这里开始

先是一个 对Com接口的导入。

 

/// <internalonly/>
   /// <devdoc>
   /// </devdoc>
   [ComImport, Guid("7297744b-e188-40bf-b7e9-56698d25cf44"), System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
   public interface IStateRuntime {

两个 ProcessReqest重载。

}

 

 

2,

public sealed class StateRuntime : IStateRuntime {

 

实现 接口中的Request.

……

 

/*
       * Process one ISAPI request
       *
       * @param ecb ECB
       */

      /// <devdoc>
      ///    <para>[To be supplied.]</para>
      /// </devdoc>
      public void ProcessRequest(
                IntPtr tracker,
                int verb,
                string uri,
                int exclusive,
                int extraFlags,
                int timeout,
                int lockCookieExists,
                int lockCookie,
                int contentLength,
                IntPtr content
                ) {
          StateHttpWorkerRequest  wr;

          wr = new StateHttpWorkerRequest(
                     tracker, (UnsafeNativeMethods.StateProtocolVerb) verb, uri,
                     (UnsafeNativeMethods.StateProtocolExclusive) exclusive, extraFlags, timeout,
                     lockCookieExists, lockCookie, contentLength, content);
          HttpRuntime.ProcessRequest(wr);
      }

…..

 

}

 

 

HttpRuntime

private void ProcessRequestInternal(HttpWorkerRequest wr)

{

……

}

 

 

后面的就是各种处理了

从代码看 asp.net 处理过程

标签:

原文地址:http://www.cnblogs.com/zbw911/p/4261916.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!