Which two actions should you perform?

A Windows Communication Foundation (WCF) solution uses the followng contract

You need to change this interface so that:
lnitialize 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 Initalize is called Which two actions should you perform?
(Each correct answer presents part of the sdution. Choose two)
A. Change the ServiceContract attribute of the IMyService interface to the following.
[ServiceContract(SessionMode=SessionMode.Required)]
B. Change the ServiceContract attrbute of the IMyService interface to the following
[ServiceContract(SessionMode=SessionMode.Allowed)]
C. Change the OperationContract attribute of the Initialize operation to the following.
[OperationContract(IsInitiating = true, IsTerminating = false)]
D. Change the OperationContract attribute of the Terminate operation to the following
[OperationContract(IsInitiating = false, IsTerminating = true)]

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.