当前位置:MCTS(70-513)题库

问题:

[单选]

A Windows Communication Foundation (WCF) service is self-hosted in a console application. The service implements the IDataAccess contract, which is defined in the MyApplication namespace. The service is implemented in a class named DataAccessService which implements the IDataAccess interface and also is defined in the MyApplication namespace. The hosting code is as follows. (Line numbers are included for reference only.)
01 static void Main(string[] args)
02 {
03 ServiceHost host;
04 ...
05 host.Open();
06 Console.ReadLine();
07 host.Close();
08 }
You need to create a ServiceHost instance and assign it to the host variable. You also need to instantiate the service host.Which line of code should you insert at line 04?()

A . host = new ServiceHost("MyApplication.DataAccessService");
B . host = new ServiceHost("MyApplication.DataAccess");
C . host = new ServiceHost(typeof(IDataAccess));
D . host = new ServiceHost(typeof(DataAccessService))

安全帽要求具备哪能些性能? You design a Business Intelligence (BI) solution by using SQL Server 2008. You create a SQL Server 2008 Reporting Services (SSRS) solution. You create reports by using Microsoft Visual Studio .NET 2008. The development team of your company must create 50 SSRS reports. You need to ensure that the company logo and the company name are included in the page header of all the reports. What should you do?()  Create an SSRS report and include the required page header in the report. Use the report as a template for all the reports.。  Create an SSRS report and include the required page header in the report. Create a subreport that refers to the report. Include the subreport to all the reports.。  Create a SSRS report and include the required page header in the report. Copy the report definition to an XML file.Add the XML file as a data source for all the reports.。  Create a SSRS report and include the required page header in the report. Create a class library that includes the report.Add the class library as an assembly reference for all the reports.。 基坑支护工程的设计使用期限应满足基础施工要求,且不应小于()。 18个月。 两年。 6个月。 一年。 劳动力的影子价格当中,属于新增资源消耗的是()。  劳动力机会成本。 迁移费。 新增的城市交通费。 劳动力培训费。 下列搜集证人证言的程序,不合法的有() 在一宗闹市杀人案中,侦查人员将目击事件发生的人聚集在一起,并一一询问,最终确定了作案过程。 在一宗故意杀人案中,一名侦查人员采用录音的方式记录了证人证言,并辅以制作说明和证人、侦查人员的签名。 在一宗盗窃案中,一名侦查人员对目击证人进行暗示,并确定犯罪嫌疑人的长相。 在一宗故意伤害案中,辩护律师经过证人许可,向其调查取证。

A Windows Communication Foundation (WCF) service is self-hosted in a console application. The service implements the IDataAccess contract, which is defined in the MyApplication namespace. The service is implemented in a class named DataAccessService which implements the IDataAccess interface and also is defined in the MyApplication namespace. The hosting code is as follows. (Line numbers are included for reference only.)
01 static void Main(string[] args)
02 {
03 ServiceHost host;
04 ...
05 host.Open();
06 Console.ReadLine();
07 host.Close();
08 }
You need to create a ServiceHost instance and assign it to the host variable. You also need to instantiate the service host.Which line of code should you insert at line 04?()

参考答案:

  参考解析

本题暂无解析

在线 客服