多项选择题
A WCF service code is implemented as follows. (Line numbers are included for reference only.) For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features! 01 02 03InstanceContextMode:=InstanceContextMode.Single)> 04Public Class CalculatorService 0506 07Public Function Calculate(ByVal op1 As Double, 08ByVal op As String, ByVal op2 As Double) As Double … 24End Function 25 26End Class You need to increase the rate by which clients get the required response from the service. What are two possible ways to achieve this goal? ()
A.
B.
C.
D.Require the clients to use async operations when calling the service.
A.
B.
C.
D.Require the clients to use async operations when calling the service.
相关考题
-
单项选择题
AWindowsCommunicationFoundation(WCF)serviceexposestwooperations:OpAandOpB.OpAneedstoexecuteundertheclient’sidentity,andOpBneedstoexecuteundertheservice’sidentity.Youneedtoconfiguretheservicetoruntheoperationsunderthecorrectidentity.Whatshouldyoudo?()
A.
B.
C.
D. -
单项选择题
YouarecreatingaWindowsCommunicationFoundation(WCF)servicethatimplementsthefollowingservicecontract.PublicInterfaceIOrderProcessingSubApproveOrder(ByValidAsInteger)Forinteractiveandself-pacedpreparationofexam70-513,tryourpracticeexams.Practiceexamsalsoincludeselfassessmentandreportingfeatures!EndInterfaceYouneedtoensurethatonlyuserswiththeManagerrolecancalltheApproveOrdermethod.Whatshouldyoudo?()</servicecontract()
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.
