nerdexam
Microsoft

70-513 · Question #301

70-513 Question #301: Real Exam Question with Answer & Explanation

Sign in or unlock 70-513 to reveal the answer and full explanation for question #301. The question stem and answer options stay visible for context.

Question

A Windows Communication Foundation (WCF) solution uses the following contract. <ServiceContract(SessionMode:=SessionMode Allowed)s Public Interface lMyService <OperationContract(lsTerminating:sFalse)s Sub Initialize () <OperationContract(lslnitiating:sFalse)>s Sub DoSomething() <OperationContract(lsterminating:=True)> Sub Terminate () End Interface You need to change this interface so that: "Initialize is allowed to be called at any time before Terminate is called. "DoSomething is allowed to be called only after Initialize is called, and not allowed to be called after Terminate is called. "Terminate will be allowed to be called only after Initialize is called Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Options

  • AChange the ServiceContract attribute of the lMyService interface to the following.
  • BChange the ServiceContract attribute of the lMyService interface to the following.
  • CChange the OperationContract attribute of the Initialize operation to the following.
  • DChange the OperationContract attribute of the Terminate operation to the following.

Unlock 70-513 to see the answer

You've previewed enough free 70-513 questions. Unlock 70-513 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-513 Practice