70-503CSharp TS Braindump
ExamSoon 70-503CSharp Exams
Microsoft Microsoft .NET Framework 3.5 CWindows Communication Foundation
Application Development CSharp
O rder : 70-503CSharp Exam
Practice Exam: 70-503CSharp
Exam Number/Code: 70-503CSharp
Exam Name: Microsoft .NET Framework 3.5 CWindows Communication
Foundation Application Development CSharp
Questions and Answers: 89 Q&As
Free 70-503CSharp Braindumps
Exam : Microsoft 70-503CSharp
Title : TS: MS.NET Frmwrk 3.5, Wndws Commun Fndtion App Dev
1. You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You create the following service contract.
[ServiceContract]
public interface IMath
{
[OperationContract]
int Add(int num1, int num2);
}
You need to add an operation contract to perform the Add operation asynchronously.
Which operation contract should you use?
A. [OperationContract(AsyncPattern=true)]
IAsyncResult BeginAdd(int num1, int num2);
int EndAdd(IAsyncResult res);
B. [OperationContract]
int BeginAdd(int num1, int num2, AsyncCallback cb, object state);
IAsyncResult EndAdd();
C. [OperationContract]
IAsyncResult BeginAdd(int num1, int num2);
[OperationContract]
int EndAdd(IAsyncResult res);
D. [OperationContract(AsyncPattern=true)]
IAsyncResult BeginAdd(int num1, int num2, AsyncCallback cb, object
state);
int EndAdd(IAsyncResult res);
Answer: D
2. You have created a Windows Communication Foundation service by using Microsoft .NET Framework 5.
The existing service interface is named IMyService, and contains the following code segment.
[ServiceContract(Name="SvcOrder", Namespace="http://contoso.com/services")]
public interface IMyService
{
[OperationContract]
void DoSomething();
}
You create a new service named IMyServiceV1 that contains an operation named DoSomethingElse.
You need to ensure that existing client applications are still able to access the IMyService.DoSomething method
without modifying client code.
Which code segment should you use?
A. [ServiceContract(Namespace="http:?//contoso.com/serv