小水电工程试生产期限为()。试生产期满后才能办理工程竣工验收手续。
A.3个月至1年
B.1至2年
C.6个月至4年
D.1至4年
第1题
Windows Communication Foundation (WCF) service is self-hosted in a console application. The service implements the lTimeService service interface in the TimeService class.You need to configure the service endpoint for HTTP communication. How should you define the service and endpoint tags?()
A.
B.
C.
D.
第2题
A self-hosted Windows Communication Foundation (WCF) service uses a secure HTTP binding with a custom principal permission mode. The binding requires users to provide their Windows logon credentials. You need to retrieve the identity of the caller.What are two possible properties you can use to achieve this goal? (Each correct answer presents a complete solution Choose two)()
A. Thread.CurrentPrincipal.Identity.Name
B. HttpContext.Current.User.Identity.Name
C. ServiceSecurityContext.Current.PrimaryIdentity.Name
D. OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.Name
第3题
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));
第4题
A.
B.
C.
D.
第5题
You are creating a Windows Communication Foundation (WCF) service. You have the following requirements: Messages must be sent over TCP The service must support transactions. Messages must be encoded using a binary encoding Messages must be secured using Windows stream-based security.You need to implement a custom binding for the service. In which order should the binding stack be configured?()
A. tcp Transport, windows Stream Security, transaction Flow, binary Message Encoding
B. transaction Flow, binary Message Encoding, windows Stream Security, tcp Transport
C. windows Stream Security, tcp Transport, binary Message Encoding, transaction Flow
D. binary Message Encoding, transaction Flow, tcp Transport, windows Stream Security
第6题
You have an existing Windows Communication Foundation (WCF) Web service. The Web service is not responding to messages larger than 64 KB. You need to ensure that the Web service can accept messages larger than 64 KB without generating errors. What should you do?()
A. Increase the value of maxReceivedMessageSize on the endpoint binding.
B. Increase the value of maxRequestLength on the httpRuntime element.
C. Increase the value of maxBufferSize on the endpoint binding.
D. Increase the value of maxBufferPoolSize on the endpoint binding.
第7题
A.From windows firewall, add an exception.
B.From windows firewall enable the block all incoming connections option.
C.From the windows firewall with advanced security snap-in, create an inbound rule.
D.From the windows firewall with advanced security snap-in, create an outbound rule.
第8题
You have a Windows Communication Foundation (WCF) service that accepts the following message contract.[MessageContract(WrapperNamespace="http://www.movies.com", ProtectionLevel=ProtectionLevel.None)] public class Ticket{ [MessageBodyMember(Namespace="http://www.movietheater.com", Order=1)] public DateTime ShowTime = DateTime.Now; [MessageBodyMember(Namespace="http://www.movietheater.com")] public string ReservationName = "Smith"; [MessageBodyMember(Namespace="http://www.movietheater.com")] public int NumberOfSeats = 0;}You need to ensure that the client sends a SOAP body that is accepted by the service.()
A.
B.
C.
D.
第9题
第10题
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.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!