欢迎来到天天文库
浏览记录
ID:32952055
大小:70.02 KB
页数:12页
时间:2019-02-18
《微软aspnet设计应用外文翻译文献》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、IntroductiontoASP.NETDevelopmentToovercometheperformanceandscalabilityproblemsthatCGIbrings,Microsoftdevelopedanewwayfordeveloperstobuildscalableapplications.ThishighperformancealternativeiscalledtheInternetServerApplicationProgrammingInterface(ISAPI)eInsteadofhousingfunctionalityinexecutablef
2、iles,ISAPIusesDLLs.UsingDLLsinsteadofexecutableprogramshassomedefiniteperformanceandscalabilityadvantagesTheISAPIextensioncouldalsobecalledwithargumentsthatwillallowasingleISAPIextensiontoperformmultipletasks.JustasintheCGIexample,thedirectorymusthaveexecutepermissionsenabled,ortheDLLwillbedow
3、nloadedtotheclientratherthanrunontheserver.ISAPIextensionsaretypicallyusedtoprocessclientrequestsandoutputaresponseasHTML,whichisverysimilartothewayCGIprogramsareused.ISAPIfiltersperformafunctionthatcan5tbedirectlyduplicatedwithCGIapplications.ISAPIfiltersareneverexplicitlycalled;instead,theya
4、recalledbyIISinresponsetocertaineventsinthelifeofarequest.ThedevelopercanrequestthatanISAPIfilterbecalledwheneveranyofthefollowingeventsoccur:1•Whentheserverhaspreprocessedtheclientheaders2.Whentheserverauthenticatestheclient3.WhentheserverismappingalogicalURLtoaphysicalURL4.Beforerawdataissen
5、tfromtheclienttotheserver5.Afterrawdataissentfromtheclienttotheserverbutbeforetheserverprocessesit6.Whentheserverlogsinformation7.WhenthesessionisendingAswithanyfilter,ISAPIfiltersshouldrequestonlythenotificationsitrequiresandprocessthemasquicklyaspossible.OneofthemorecommonusesofISAPIfiltersi
6、stoprovidecustomauthentication.AnotheruseistomodifytheHTMLthatwillbesenttothedien匸Forexample,anISAPIfiltercouldbeusedtochangethebackgroundcolorofeachpage.BecauseISAPIfiltersaren^tnearlyascommonasISAPIextensions,Iworftcoverthemanyfurtherinthisbook.IfyouwanttolearnmoreaboutISAPIextensions,youcan
7、checkoutmybookInsideServer-BasedApplications(MicrosoftPress,1999).ISAPIspecifiesseveralentry-pointfunctionsthatmustbeexportedfromtheDLL.Usingtheseentrypoints,IIScanloadtheDLL;callthefunctionsthatitimplements,passinginparametersasrequire
此文档下载收益归作者所有