网友您好, 请在下方输入框内输入要搜索的题目:
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();}}
参考答案