News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;
[ServiceContract(SessionMode=SessionMode.Allowed)]
public interface IMyService
{
[OperationContract(IsTerminating=false)]
void Initialize();
[OperationContract(IsInitiating=false)]
void DoSomething();
[OperationContract(IsTerminating=true)]
void Terminate();
}

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)

  1. Change the ServiceContract attribute of the IMyService interface to the following.

    [ServiceContract(SessionMode=SessionMode.Required)]
  2. Change the ServiceContract attrbute of the IMyService interface to the following

    [ServiceContract(SessionMode=SessionMode.Allowed)]
  3. Change the OperationContract attribute of the Initialize operation to the following.

    [OperationContract(IsInitiating = true, IsTerminating = false)]
  4. Change the OperationContract attribute of the Terminate operation to the following

    [OperationContract(IsInitiating = false, IsTerminating = true)]
Answer: Answer is a, d
comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;