ASP。净Web API管道模型

  

<强> ASP。净Web API

ASP。Web APIWebHostSelfHostASP净。净Web API

,

,

<强>

<强> ASP。净Web API <强>

<强> ASP。净Web API <强>

<强> <强>

<强> ASP。净Web API selfhost <强>

<强> ASP。净Web API高手写 <强>

,

<强>

<强> <强>

,,, publicabstractclassHttpMessageHandler : IDisposable   ,,{   ,,,,,,,protectedHttpMessageHandler ();   ,,,,,,,publicvoidDispose ();   ,,,,,,,protectedvirtualvoidDispose (booldisposing);   ,,,,,,,protectedinternalabstractTask非同步(CancellationTokencancellationToken HttpRequestMessagerequest也);   }


是以()

,

<强> <强>

,,, publicabstractclassDelegatingHandler : HttpMessageHandler   ,,{   ,,,,,,,protectedDelegatingHandler ();   ,,,,,,,protectedDelegatingHandler (HttpMessageHandlerinnerHandler);   ,,,,,,,publicHttpMessageHandlerInnerHandler {组,得到,,,}   ,   ,,,,,,,protectedoverridevoidDispose (booldisposing);   ,,,,,,,protectedinternaloverrideTask非同步(CancellationTokencancellationToken HttpRequestMessagerequest也);   }


DelegatingHandlerHttpMessageHandlerDelegatingHandlerDelegatingHandlerInnerHandlerInnerHandlerDelegatingHandlerHttpMessageHandlerDelegatingHandlerHttpMessageHandlerHttpMessageHandler

,

<强> <强> <强> <强>

publicclassHttpServer : DelegatingHandler   ,,{   ,,,,,,,publicHttpServer ();   ,,,,,,,publicHttpServer (HttpConfigurationconfiguration);   ,,,,,,,publicHttpServer (HttpMessageHandlerdispatcher);   ,,,,,,,publicHttpServer (HttpMessageHandlerdispatcher HttpConfigurationconfiguration也);   ,,,,,,,publicHttpConfigurationConfiguration {,得到;}   ,,,,,,,publicHttpMessageHandlerDispatcher {,得到;}   ,   ,,,,,,,protectedoverridevoidDispose (booldisposing);   ,,,,,,,protectedvirtualvoidInitialize ();   ,,,,,,,protectedoverrideTask非同步(CancellationTokencancellationToken HttpRequestMessagerequest也);   }


HttpServerDelegatingHandlerHttpConfigurationHttpConfigurationHttpMEssageHandlerHttpRoutingDispatcherDispatcher

,

<强> <强> <强> <强>

,,, publicclassHttpRoutingDispatcher : HttpMessageHandler   ,,{   ,,,,,,,//字段   ,,,,,,,privatereadonlyHttpConfiguration_configuration;   ,,,,,,,privatereadonlyHttpMessageInvoker_defaultInvoker;   ,   ,,,,,,,//方法   ,,,,,,,publicHttpRoutingDispatcher (HttpConfigurationconfiguration);   ,,,,,,,publicHttpRoutingDispatcher (HttpMessageHandlerdefaultHandler HttpConfigurationconfiguration也);   ,,,,,,,privatestaticvoidRemoveOptionalRoutingParameters(字符串,IDictionary routeValueDictionary);   ,,,,,,,protectedoverrideTask非同步(CancellationTokencancellationToken HttpRequestMessagerequest也);   }


HttpRoutingDispatcherHttpMessageHandlerHttpControllerDispatcherHttpMessageHandler

ASP。净Web API 1

 ASP。净Web API管道模型

ASP。净Web API SelfHost

,

CustomDelegatingHandlerDelegatingHandler

1 - 1

,,, publicclassCustomDelegatingHandler : DelegatingHandler   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null

ASP。净Web API管道模型

Copyright © 2020-2023 feiqueyun.cn. All Rights Reserved. 肥雀云_南京肥雀信息技术有限公司版权所有 南京肥雀信息技术有限公司 苏ICP备16063723号-5