题目内容

A Windows Communication Foundation (WCF) solution exposes the following service over a TCP binding.(Line numbers are included for reference only.) 01 [ServiceContract] 02 [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)] 03 public class DataAccessService 04 { 05 [OperationContract] 06 public void PutMessage(string message) 07 { 08 MessageDatabase.PutMessage(message); 09 } 10 [OperationContract] 11 pubic string[] SearchMessages(string search) 12 { 13 return MessageDatabase.SearchMessages(search); 14 } 15 } MessageDatabase supports a limited number of concurrent executions of its methods. You need to change the service to allow up to the maximum number of executions of the methods of MessageDatabase. This should be implemented without preventing customers from connecting to the service. What should you do?()

A. Change the service behavior as follows. [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple, InstanceContextMode = InstanceContextMode.Single)]
B. Change the service behavior as follows. [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Single, InstanceContextMode = InstanceContextMode.PerSession)]
C. Add a throttling behavior to the service, and configure the maxConcurrentCalls.
D. Add a throttling behavior to the service, and configure the maxConcurrentSessions.

查看答案
更多问题

周保国早年丧妻,有长子周明、次女周梅和三子周新。周明、周梅已结婚,周梅在外地居住,周新只有14周岁。周保国、周新和周明夫妻共同生活。周保国因偏爱儿子,于2003年5月立下亲笔遗嘱,决定其死后,全部遗产存款2万元和房屋1套由周明与周新继承。但周明在其妻挑唆下,对周保国的生活和身体状况不闻不问,周保国被迫搬到外地周梅家居住,受到周梅夫妇的周到照顾,遂又立下亲笔遗嘱,决定将其1万元存款给周梅,房屋1套给未成年的周新。2003年8月周保国病重住进医院,正值此时,周新和同学打架致残,周明对周保国的病情毫不关心,周保国极为恼怒,在其弥留之际,当着3个医生的面立下口头遗嘱,将其所有遗产由周梅1人继承。周保国去世后,周明持其父自书遗嘱,周梅根据周保国的口头遗嘱均要求继承其父遗产。周保国的遗产应依哪份遗嘱继承?

材料丧失正常工作能力的应力称为()。

A. 危险应力
B. 工作应力
C. 安全应力
D. 许用应力

V带的横截面形状是()

A. 扁平矩形
B. 等腰梯形
C. 三角形
D. V形

长期投资

答案查题题库