YouareimplementinganASP.NETWebsite.Thesiteusesacomponentthatmustbedynamicallyconfiguredbeforeitcanbeusedwithinsitepages.YoucreateastaticmethodnamedSiteHelper.Configurethatconfiguresthecomponent.YouneedtoaddacodesegmenttotheGlobal.asaxfilethatinvokestheSiteHelper.Configuremethodthefirsttime,andonlythefirsttime,thatanypageinthesiteisrequested.Whichcodesegmentshouldyouuse?()A.voidApplication_Start(objectsender,EventArgse){SiteHelper.Configure();}B.voidApplication_Init(objectsender,EventArgse){SiteHelper.Configure();}C.voidApplication_BeginRequest(objectsender,EventArgse){SiteHelper.Configure();}D.ObjectlockObject=newObject();voidApplication_BeginRequest(objectsender,EventArgse){lock(lockObject()){SiteHelper.Configure();}}
YouareimplementinganASP.NETWebsite.Thesiteusesacomponentthatmustbedynamicallyconfiguredbeforeitcanbeusedwithinsitepages.YoucreateastaticmethodnamedSiteHelper.Configurethatconfiguresthecomponent.YouneedtoaddacodesegmenttotheGlobal.asaxfilethatinvokestheSiteHelper.Configuremethodthefirsttime,andonlythefirsttime,thatanypageinthesiteisrequested.Whichcodesegmentshouldyouuse?()
A.voidApplication_Start(objectsender,EventArgse){SiteHelper.Configure();}
B.voidApplication_Init(objectsender,EventArgse){SiteHelper.Configure();}
C.voidApplication_BeginRequest(objectsender,EventArgse){SiteHelper.Configure();}
D.ObjectlockObject=newObject();voidApplication_BeginRequest(objectsender,EventArgse){lock(lockObject()){SiteHelper.Configure();}}
相关考题:
0MC一R的Solaris系统包括(). A.数据库服务器B.应用服务器C.FTP服务器D.以上都不对