zoukankan      html  css  js  c++  java
  • 从代码看 asp.net 处理过程

    从这里开始

    先是一个 对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)

    {

    ……

    }

     

     

    后面的就是各种处理了

  • 相关阅读:
    poj2411 状压dp
    棋盘覆盖TYVJ1035(二分图最大匹配)
    poj3417
    无向图边双+缩点
    无向图点双+缩点
    bzoj1123(割点加路径统计)
    【BZOJ1178】会议中心(APIO2009)-贪心+倍增+set
    【BZOJ4650】优秀的拆分(NOI2016)-后缀数组+RMQ+差分
    【BZOJ4569】萌萌哒(SCOI2016)-并查集+倍增
    【BZOJ2208】连通数(JSOI2010)-SCC+DP+bitset
  • 原文地址:https://www.cnblogs.com/zbw911/p/4261916.html
Copyright © 2011-2022 走看看