PrepAway - Latest Free Exam Questions & Answers

Which service contract should you use?

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
The service will receive notification messages from client applications by using a number of transports, including HTTP, TCP, MSMQ, and others.
You need to ensure that all client applications can send notification messages to the service.
Which service contract should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
[ServiceContract]
public interface INotificationService {
[OperationContract(AsyncPattern=true)]
void LogMessage(string message);
}

B.
[ServiceContract]
public interface INotificationService {
[OperationContract(ReplyAction="none")]
void LogMessage(string message);
}

C.
[ServiceContract]
public interface INotificationService {
[OperationContract(IsOneWay=true)]
void LogMessage(string message);
}

D.
[ServiceContract]
public interface INotificationService {
[OperationContract(IsTerminating=true)]
void LogMessage(string message);
}


Leave a Reply