PrepAway - Latest Free Exam Questions & Answers

Which code segment should you insert at line 04?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will expose a method named DoProcess to the client applications.
You write the following code segment. (Line numbers are included for reference only.)
01 [ServiceContract]
02 public interface IMyService
03 {
04
05 }
You need to ensure that the client applications are not required to obtain results from the DoProcess method.
Which code segment should you insert at line 04?

PrepAway - Latest Free Exam Questions & Answers

A.
[OperationContract(IsOneWay=true)]
bool DoProcess();

B.
[OperationContract(IsOneWay=true)]
void DoProcess();

C.
[OperationContract(AsyncPattern=false)]
bool DoProcess();

D.
[OperationContract(AsyncPattern=false)]
void DoProcess();


Leave a Reply