题目内容

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))

查看答案
更多问题

演戏时总指挥由谁担任:()。

A. 船长
B. 轮机长
C. 大副

休克缺血期的发病学治疗主要是使用()

A. 缩血管药
B. 扩血管药
C. 补充血容量
D. 强心药
E. 碳酸氢钠

以下设置密码的方式中哪种更加安全()

A. 用自己的生日作为密码
B. 全部用英文字母作为密码
C. 用大小写字母、标点、数字以及控制符组成密码
D. 用自己的姓名的汉语拼音作为密码

什么是倍捻技术?如何实现倍捻技术的?

答案查题题库