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)

    {

    ……

    }

     

     

    后面的就是各种处理了

  • 相关阅读:
    mybatis中的#和$的区别
    spring ioc三种注入方式
    JSP中动态INCLUDE与静态INCLUDE的区别
    j2ee部分
    面试 框架部分
    注册Jdbc驱动程序的三种方式
    union和union all有什么不同?
    面试 JavaWeb 部分
    Cordova插件开发(iOS/Android)--看这篇就够了
    程序员,请不要只看技术
  • 原文地址:https://www.cnblogs.com/zbw911/p/4261916.html
Copyright © 2011-2022 走看看