多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

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 element. factory="MovieServiceFactory"
  • 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()]
正确答案:B
答案解析:
进入题库查看解析

微信扫一扫手机做题