You are developing a custom service host for a Windows Commu

题目
单选题
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()]

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You are developing an application that performs file backups in the background. The background application will host a Windows Communication Foundation (WCF) service and must be active as soon as the machine is running. The background application will not have a user interface. A front-end application will consume the WCF service and will provide the user interface.You need to choose a host environment for the WCF service.Which hosting environment should you choose? ()

A. Microsoft Internet Information Services (IIS) 6.0

B. Windows Process Activation Services (WAS)

C. A Windows Forms application

D. A Windows Service


参考答案:D

第2题:

You have a server that runs windows server 2008 you need to configure the server as a VPN server. What should you install on the server?()

A.Windows deployment Services role and deployment server role service.

B.Windows deployment services role and deployment transport role service.

C.Network policy and access services role and routing and remote access services role service.

D.Network policy and access services and host credential authorization protocol role service.


参考答案:C

第3题:

You are developing a Windows Communication Foundation (WCF) service that will be hosted in Microsoft Internet Services (IIS) 7.0.The service must be hosted in an IIS application named Info. You need to enable this service to be hosted in IIS by changing the web.config file.Witch XML segment should you add to the web.config file?()

A.

B.

C.

D.


参考答案:C

第4题:

You perform an in-place upgrade on a Microsoft Windows XP Service Pack 2 (SP2) computer to Windows Vista.After the upgrade, you attempt to run a custom application. You receive the following error message: This application is only designed to run on Windows XP or later.”You need to run the application on Windows Vista.What should you do?()

A.A

B.B

C.C

D.D


参考答案:D

第5题:

You are developing a Windows Communication Foundation (WCF) service. The service operation takes a customer number as the only argument and returns information about the customer. The service requires a security token in the header of the message. You need to create a message contract for the service.Which code segment should you use?()

A.

B.

C.

D.


参考答案:D

第6题:

You are developing a Windows Communication Foundation (WCF) service that does not operate on a duplex channel.You find that operations do not start until all previous operations have finished. The service hosting code contains the following lines.var service = new WarehouseService(); var host = new ServiceHost(service);You need to ensure that new operations do not wait for previous operations to finish.Which attribute should you use to decorate the service?()

A. [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Multiple)]

B. [CallbackBehavior(ConcurrencyMode=ConcurrencyMode.Multiple)]

C. [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Single)]

D. [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Reentrant)]


参考答案:B

第7题:

You are developing a Windows Communication Foundation (WCF) service. The service configuration file has a element defined. You need to ensure that all security audit information, trace logging, and message logging failures are recorded.Which configuration segment should you add to the element?()

A.

B.

C.

D.


参考答案:C

第8题:

You are developing a Windows Service. The Windows Service will host a Windows Communication Foundation (WCF) service.The Windows Service class will inherit from ServiceBase.You need to ensure that the WCF service starts when the Windows Service is restarted.What should you do in the Windows Service class?()

A.

B.

C.

D.


参考答案:B

第9题:

Your company has a domain controller named Server1 that runs Windows Server 2008 R2 and the DNS Server server role. A server named Server2 runs a custom application.You need to configure DNS to include the following parameters for the custom application: &710;Service &710;Priority &710; Weight &710; Protocol &710; Port number &710;Host offering this service Which record should you create?()

A. Host Info (HINFO)

B. Service Location (SRV)

C. Canonical Name (CNAME)

D. Well-Known Service (WKS)


参考答案:B

第10题:

Your company has a domain controller named Server1 that runs Windows Server 2008 and the DNS server role. A server named Server2 runs a custom application. You need to configure DNS to include the following parameters for the custom application: Service Priority Weight Protocol Port Number Host offering this service Which record should you create?()

  • A、 Host Info (HINFO)
  • B、 Service Locator (SRV)
  • C、 Canonical Name (CNAME)
  • D、 Well-Known Service (WKS)

正确答案:B

更多相关问题