单项选择题
You are creating a Windows Communication Foundation (WCF) service that implements the following service contract. Public Interface IOrderProcessing Sub ApproveOrder(ByVal id As Integer)For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features!End Interface You need to ensure that only users with the Manager role can call the ApproveOrder method. What should you do?()
A. In the method body, check the Rights.PosessesProperty property to see if it contains manager.
B. Add a PrincipalPermission attribute to the method and set the Roles property to Manager.
C. Add a SecurityPermission attribute to the method and set the SecurityAction to Demand.
D. In the method body, create a new instance of WindowsClaimSet.
A. In the method body, check the Rights.PosessesProperty property to see if it contains manager.
B. Add a PrincipalPermission attribute to the method and set the Roles property to Manager.
C. Add a SecurityPermission attribute to the method and set the SecurityAction to Demand.
D. In the method body, create a new instance of WindowsClaimSet.
相关考题
-
单项选择题
YouarecreatingaWindowsCommunicationFoundation(WCF)servicethatacceptsmessagesfromclientswhentheyarestarted.Themessageisdefinedasfollows.[MessageContract]publicclassAgent{publicstringCodeName{get;set;}publicstringSecretHandshake{get;set;}}Youhavethefollowingrequirements:"TheCodeNamepropertymustbesentincleartext.Theservicemustbeabletoverifythatthepropertyvaluewasnotchangedafterbeingsentbytheclient."TheSecretHandshakepropertymustnotbesentincleartextandmustbereadablebytheservice.Whatshouldyoudo?()
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.
