You are developing a custom service host for a Windows Communication Foundation (WCF) service. The service host is named MovieServiceHost.You need to deploy the service with the custom service host in Microsoft Internet Information Services (IIS) 7.0.What should you do?()
A. Make sure that service class has a default constructor. Add a public read-only property with the name ServiceHost that returns an instance of the MovieServiceHost class.
B. Create a factory for the custom service host. Name the factory MovieServiceHostFactory. In the web.config file, add the following attribute to the element within the C. Create a factory for the custom service host. Name the factory MovieServiceHostFactory. In the .svc file, add the following line. <%@ServiceHost Service="MovieServiceHostFactory" Language="C#"> D. Decorate the custom service host class with the following line. [System.ServiceModel.Activation.ServiceActivationBuildProvider()]
第1题
A.http.display
B.http.partial
C.http.load
D.http.get
第2题
A.控件从System.Web.UI.Control继承。
B.控件从System.Web.UI.WebControls.CompositeControl继承.
C.控件从System.Web.UI.WebControls.WebControl继承.
D.控件从System.Web.UI.UserControl继承
第3题
A.从HttpContext对象的Session属性访问个性化数据。
B.从HttpContext对象的Application属性访问个性化数据.
C.从HttpContext对象的Cache属性访问个性化数据。
D.从HttpContext对象的Profile属性访问个性化数据。
第4题
plicationsinthreedepartmentsofyourcompany.ThelibrarycontainsaDepartmentclasswiththefollowingdefinition.
publicclassDepartment{
publicstringname;
publicstringmanager;
}
Eachapplicationusesacustomconfigurationsectiontostoredepartment-specificvaluesintheapplicationconfigurationfileasshowninthefollowingcode.
YouneedtowriteacodesegmentthatcreatesaDepartmentobjectinstancebyusingthefieldvaluesretrievedfromtheapplicationconfigurationfile.
Whichcodesegmentshouldyouuse?()
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!