You are developing a client application that consumes a Windows Communication Foundation (WCF) service. You use the svcutil.exe utility to create a proxy for the service. You use the svcutil.exe switches that generate asynchronous calls. GetFlight is a service operation that takes no parameters and returns a string. The GetFlightCallback method must be called when the service operation returns.You create an instance of the client proxy with the following code:var client = new TranvelServiceClient( );You need to ensure that a callback is received when the GetFlight operation is called asynchronously. Which code segment should you use?()
第1题:
You are developing a client application that consumes a Windows Communication Foundation (WCF) service.The operation contract is as follows.[OperationContract][FaultContract(typeof(SalesFault))]string GetSales(string saleId);()The service configuration file contains the following line in the serviceBehaviors section.A divide-by-zero exception is not being handled by the service.You need to ensure that the exception is caught in the client application.Which type of exception should the client catch?()
A. TimeoutException
B. FaultException
C. DivideByZeroException
D. FaultException<SalesFault>
第2题:
A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service. You must ensure that the client application can interact with the WCF service. What should you do? ()
第3题:
You are developing a Windows Communication Foundation (WCF) service.You enable message logging, trace listeners, activity propagation, and tracing on the trace sources.You have the following code segment in the client application. (Line numbers are included for reference only.)01 Guid multiCallActivityId = Guid.NewGuid();02 TraceSource ts = new TraceSource("Multicall");03 Trace.CorrelationManager.ActivityId = multiCallActivityId;04You encounter errors when your client application consumes the service.You need to ensure that your client application can correlate tracing information with the service.Which code segment should you add at line 04?()
A.
B.
C.
D.
第4题:
You need to recommend a solution for deploying App2.What should you recommend?()
第5题:
All servers in your environment run Windows Server 2008 R2. All client computers ru n Windows 7. Each client computer has at least 2 5 GB free disk space. You virtualize applications by using Microsoft Application Virtualization (App - V). The App - V client cache is set to 4096 MB. User profiles are virtualized and stored on a server. You ne ed to increase the size of the file system cache on a client computer to at least 10 GB. What should you do?()
第6题:
Your company uses Microsoft Application Virtualization (App - V). Your environment includes multiple client computer configurations, as shown in the following table.You need to deploy a 32 - bit application to all client computers.Which reference computer configuration should you use?()
A.Config1 with App - V Sequencer 4.5 32 - bit
B.Config2 with App - V Sequencer 4.6 64 - bit
C.Config3 with App - V Sequencer 4.6 32 - bit
D.Config4 with App - V Sequencer 4.6 64 - bit
第7题:
Your company has 1,000 client computers that run Windows XP Professional x64. You are planning to deploy Windows 7 Enterprise x64. The company uses an application that is incompatible with Windows 7 Enterprise x64. You have the following requirements: Provide all users with access to the application. Deploy and manage the application by using a centralized solution. You need to design a solution that meets the requirements. What should you do?()
第8题:
You are developing a Windows Communication Foundation (WCF) service. Client applications require reliable sessions to access the service.Users report that they receive ServerTooBusyException errors when their client application tries to establish a session. You need to ensure that the service can handle a minimum of 30 client connection requests.Which ReliableSessionBindingElement property should you configure?()
A. MaxRetryCount
B. MaxTransferWindowSize
C. MaxPendingChannels
D. InactivityTimeout
第9题:
You are developing a Windows Communication Foundation (WCF) client application. The client application contains the following code. [ServiceContract] public interface ISocialStatus { [OperationContract] [WebInvoke(UriTemplate = "/statuses/update.xml?status-{text}")] void UpdateStatus(string text); } public class SocialClient : ClientBase
第10题:
You work as an application developer at Certkiller .com. You are developing a collection class named ClientCollection, which is to be used for storing the names of Certkiller .com’s clients that are situated in various geographical areas. These client names are represented by the Client class. You are planning to create a method named SortClients in the ClientCollection class to arrange Client objects in ascending order. You need to ensure that the appropriate interface is implemented by the Client class to allow sorting.What interface should be used?()