Microsoft
70-513 · Question #273
You are creating a Windows Communication Foundation (WCF) service. You do not want to expose the internal implementation at the service layer. You need to expose the following class as a service…
The correct answer is C. <ServiceContract(Name:="Arithmetic")>. See the full explanation below for the reasoning.
Question
You are creating a Windows Communication Foundation (WCF) service. You do not want to expose the internal implementation at the service layer. You need to expose the following class as a service named Arithmetic with an operation named Sum. Public Class Calculator Public Function Add (ByVal x As Integer, ByVal y As Integer) As Integer End Function End Class Which code segment should you use?
Options
- A<ServiceContract(Namespace:="Arithmetic")>
- B<ServiceContract(ConfigurationName:="Arithmetic")>
- C<ServiceContract(Name:="Arithmetic")>
- D<ServiceContract(Name:="Arithmetic")>
How the community answered
(56 responses)- A2% (1)
- B11% (6)
- C84% (47)
- D4% (2)
Community Discussion
No community discussion yet for this question.