欢迎来到天天文库
浏览记录
ID:31665650
大小:70.66 KB
页数:14页
时间:2019-01-16
《asp论文外文翻译---从底层了解aspnet的结构》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、原文1Alow-levelLookattheASP.NETArchitectureAbstractASP.NETisapowerfulplatformforbuildingWebapplicationsthatprovidesatremendousamountofflexibilityandpowerforbuildingjustaboutanykindofWebapplication・MostpeoplearefamiliaronlywiththehighlevelframeworkslikeWebFormsandWebServiceswhichsitattheverytopl
2、eveloftheASP.NEThierarchy.InthisarticleIT1describethelowerlevelaspectsofASP.NETandexplainhowrequestsmovefromWebServertotheASP.NETruntimeandthenthroughtheASP.NETHttpPipelinetoprocessrequests.WhatisASP.NETLet'sstartwithasimpledefinition:WhatisASP.NET?IliketodefineASP.NETasfollows:ASP.NETisasoph
3、isticatedengineusingManagedCodeforfronttobackprocessingofWebRequests.IfsmuchmorethanjustWebFormsandWebServices・・・ASP.NETisarequestprocessingengine・Ittakesanincomingrequestandpassesitthroughitsinternalpipelinetoanendpointwhereyouasadevelopercanattachcodetoprocessthatrequest.Thisengineisactuall
4、ycompletelyseparatedfromHTTPortheWebServer.Infact,theHTTPRuntimeisacomponentthatyoucanhostinyourownapplicationsoutsideofIISoranyserversideapplicationaltogether・Theruntimeprovidesacomplexyetveryelegantmechanismforroutingrequeststhroughthispipeline・Thereareanumberofinterrelatedobjects,mostofwhi
5、chareextensibleeitherviasubclassingorthrougheventinterfacesatalmosteveryleveloftheprocess,sotheframeworkishighlyextensible•Throughthismechanismit'spossibletohookintoverylowlevelinterfacessuchasthecaching,authenticationandauthorization.Youcanevenfiltercontentbypreorpostprocessingrequestsorsimp
6、lyrouteincomingrequeststhatmatchaspecificsignaturedirectlytoyourcodeoranotherURL.Therearealotofdifferentwaystoaccomplishthesamething,butalloftheapproachesarestraightforwardtoimplement,yetprovideflexibilityinfindingthebestmatchforperformanceandeaseofdevelopment.TheentireASP.NETenginewascomplet
7、elybuiltinmanagedcodeandalloftheextensibilityfunctionalityisprovidedviamanagedcodeextensions・Thisisatestamenttothepowerofthe.NETframeworkinitsabilitytobuildsophisticatedandveryperformanceorientedarchitectures.Aboveallthough,themostimpressivep
此文档下载收益归作者所有