You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
21 KiB
JavaScript

12 months ago
"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[6615],{3502:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>d,contentTitle:()=>a,default:()=>p,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var t=r(5893),s=r(1151),l=r(4996);const i={id:"middleware",title:"5.5 \u4e2d\u95f4\u4ef6 (Middleware)",sidebar_label:"5.5 \u4e2d\u95f4\u4ef6 (Middleware)",description:"\u76d1\u542c\u6216\u63a7\u5236\u8bf7\u6c42\u548c\u54cd\u5e94\u5c31\u7528\u5b83"},a=void 0,c={id:"middleware",title:"5.5 \u4e2d\u95f4\u4ef6 (Middleware)",description:"\u76d1\u542c\u6216\u63a7\u5236\u8bf7\u6c42\u548c\u54cd\u5e94\u5c31\u7528\u5b83",source:"@site/docs/middleware.mdx",sourceDirName:".",slug:"/middleware",permalink:"/docs/middleware",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/middleware.mdx",tags:[],version:"current",lastUpdatedBy:"MonkSoul",lastUpdatedAt:1681571707,formattedLastUpdatedAt:"Apr 15, 2023",frontMatter:{id:"middleware",title:"5.5 \u4e2d\u95f4\u4ef6 (Middleware)",sidebar_label:"5.5 \u4e2d\u95f4\u4ef6 (Middleware)",description:"\u76d1\u542c\u6216\u63a7\u5236\u8bf7\u6c42\u548c\u54cd\u5e94\u5c31\u7528\u5b83"},sidebar:"docs",previous:{title:"5.4 \u8bf7\u6c42\u5ba1\u8ba1\u65e5\u5fd7 (Audit)",permalink:"/docs/audit"},next:{title:"5.6 Vue/React/Angular \u8bf7\u6c42\u4ee3\u7406",permalink:"/docs/clientapi"}},d={},u=[{value:"5.5.1 \u5173\u4e8e\u4e2d\u95f4\u4ef6",id:"551-\u5173\u4e8e\u4e2d\u95f4\u4ef6",level:2},{value:"5.5.2 \u5e38\u89c1\u4e2d\u95f4\u4ef6",id:"552-\u5e38\u89c1\u4e2d\u95f4\u4ef6",level:2},{value:"5.5.2.1 \u6240\u6709\u8bf7\u6c42\u8fd4\u56de\u540c\u4e00\u4e2a\u7ed3\u679c",id:"5521-\u6240\u6709\u8bf7\u6c42\u8fd4\u56de\u540c\u4e00\u4e2a\u7ed3\u679c",level:3},{value:"5.5.2.2 \u62e6\u622a\u6240\u6709\u8bf7\u6c42\uff08\u53ef\u591a\u4e2a\uff09",id:"5522-\u62e6\u622a\u6240\u6709\u8bf7\u6c42\u53ef\u591a\u4e2a",level:3},{value:"5.5.2.3 \u7279\u5b9a\u8def\u7531\u4e2d\u95f4\u4ef6\uff08\u53ef\u591a\u4e2a\uff09",id:"5523-\u7279\u5b9a\u8def\u7531\u4e2d\u95f4\u4ef6\u53ef\u591a\u4e2a",level:3},{value:"5.5.2.4 \u5d4c\u5957\u8def\u7531\u4e2d\u95f4\u4ef6\uff08\u53ef\u591a\u4e2a\uff09",id:"5524-\u5d4c\u5957\u8def\u7531\u4e2d\u95f4\u4ef6\u53ef\u591a\u4e2a",level:3},{value:"5.5.3 \u81ea\u5b9a\u4e49\u4e2d\u95f4\u4ef6",id:"553-\u81ea\u5b9a\u4e49\u4e2d\u95f4\u4ef6",level:2},{value:"5.5.3.1 <code>app.Use</code> \u65b9\u5f0f (\u4e0d\u63a8\u8350)",id:"5531-appuse-\u65b9\u5f0f-\u4e0d\u63a8\u8350",level:3},{value:"5.5.3.2 <code>\u72ec\u7acb\u7c7b</code> \u65b9\u5f0f\uff08\u63a8\u8350\uff09",id:"5532-\u72ec\u7acb\u7c7b-\u65b9\u5f0f\u63a8\u8350",level:3},{value:"5.5.3.3 \u914d\u7f6e\u66f4\u591a\u53c2\u6570",id:"5533-\u914d\u7f6e\u66f4\u591a\u53c2\u6570",level:3},{value:"5.5.4 \u4e2d\u95f4\u4ef6\u987a\u5e8f",id:"554-\u4e2d\u95f4\u4ef6\u987a\u5e8f",level:2},{value:"5.5.5 \u4f9d\u8d56\u6ce8\u5165/\u89e3\u6790\u670d\u52a1",id:"555-\u4f9d\u8d56\u6ce8\u5165\u89e3\u6790\u670d\u52a1",level:2},{value:"5.5.5.1 \u6784\u9020\u51fd\u6570\u65b9\u5f0f",id:"5551-\u6784\u9020\u51fd\u6570\u65b9\u5f0f",level:3},{value:"5.5.5.2 <code>httpContext.RequestServices</code> \u65b9\u5f0f",id:"5552-httpcontextrequestservices-\u65b9\u5f0f",level:3},{value:"5.5.6 \u5e38\u89c1\u95ee\u9898",id:"556-\u5e38\u89c1\u95ee\u9898",level:2},{value:"5.5.7 \u4e86\u89e3\u66f4\u591a",id:"557-\u4e86\u89e3\u66f4\u591a",level:2},{value:"5.5.8 \u53cd\u9988\u4e0e\u5efa\u8bae",id:"558-\u53cd\u9988\u4e0e\u5efa\u8bae",level:2}];function o(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h2,{id:"551-\u5173\u4e8e\u4e2d\u95f4\u4ef6",children:"5.5.1 \u5173\u4e8e\u4e2d\u95f4\u4ef6"}),"\n",(0,t.jsx)(n.p,{children:"\u4e2d\u95f4\u4ef6\u662f\u4e00\u79cd\u88c5\u914d\u5230\u5e94\u7528\u7ba1\u9053\u4ee5\u5904\u7406\u8bf7\u6c42\u548c\u54cd\u5e94\u7684\u8f6f\u4ef6\u3002 \u6bcf\u4e2a\u7ec4\u4ef6\uff1a"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"\u9009\u62e9\u662f\u5426\u5c06\u8bf7\u6c42\u4f20\u9012\u5230\u7ba1\u90