单项选择题
You are creating a Windows Communication Foundation (WCF) service that accepts messages from clients when they are started. The message is defined as follows. [MessageContract] public class Agent { public string CodeName { get; set; }public string SecretHandshake { get; set; } } You have the following requirements: "The CodeName property must be sent in clear text. The service must be able to verify that the property value was not changed after being sent by the client. "The SecretHandshake property must not be sent in clear text and must be readable by the service. What should you do?()
A. Add a MessageBodyMember attribute to the CodeName property and set the ProtectionLevel to Sign. Add a MessageBodyMember attribute to the SecretHandshake property and set the protectionLevel to EncryptAndSign.
B. Add a DataProtectionPermission attribute to the each property and set the ProtectData property to true.
C. Add an XmlText attribute to the CodeName property and set the DataType property to Signed. add a PasswordPropertyText attribute to the SecretHandshake property and set its value to true.
D. Add an ImmutableObject attribute to the CodeName property and set its value property to true. Add a Browsable attribute to the SecretHandshake property and set its value to false.
相关考题
-
单项选择题
YouarecreatingaWindowsCommunicationFoundation(WCF)servicetoprocessorders.Thedatacontractfortheorderisdefinedasfollows.[DataContract]publicclassOrder{ [DataMember]publicstringCardHolderName{get;set;[DataMember]publicstringCreditCardNumber{get;set;}}Youhavethefollowingrequirements: "EnablethetransmissionofthecontentsofOrderfromtheclientstotheservice."EnsurethatthecontentsofCreditCardNumberarenotsentacrossthenetworkincleartext."EnsurethatthecontentsofCreditCardNumberareaccessiblebytheservicetoprocesstheorder.Youneedtoimplementtheservicetomeettheserequirements.Whatshouldyoudo?() Forinteractiveandself-pacedpreparationofexam70-513,tryourpracticeexams.Practiceexamsalsoincludeselfassessmentandreportingfeatures!
A. Add a DataProtectionPermission attribute to the CreditCardNumber property and set the ProtectData property to true.
B. Convert the DataContract to a MessageContract and set the ProtectionLevel property to SignAndEncrypt.
C. Change the data type of CreditCardNumber from string to SecureString.
D. Implement the CreditCardNumber property getter and setter. -
单项选择题
AWindowsCommunicationFoundation(WCF)solutionexposesthefollowingcontractoveranHTTPconnection.FunctionGetData()AsStringEndInterfaceExistingclientsaremakingblockingcallstoGetData.CallstoGetDatatakefivesecondstocomplete.Youneedtoallownewclientstoissuenon-blockingcallstogetthedata,withoutbreakinganyexistingclients.Whatshouldyoudo?()
A.
B.
C.Generate a proxy class with asynchronous methods and use it for the new clients.
D.Add a new endpoint to the service that uses a full-duplex binding and use it for the new clients. -
单项选择题
AWindowsCommunicationFoundation(WCF)servicehasacallbackcontract.Youaredevelopingaclientapplicationthatwillcallthisservice.YoumustensurethattheclientapplicationcaninteractwiththeWCFservice.Whatshouldyoudo?()
A. On the OperationContractAttribute, set the AsyncPattern property value to True.
B. On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client. For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features!
C. On the client, create a proxy derived from DuplexClientBase(Of TChannel).
D. On the client, use GetCallbackChannel(Of T).
