Exit 70-513 TS: Windows Communication Foundation velopment with Microsoft .NET Framework 4
Question 1 of 5
0% complete
Q1 Single choice

You are developing a Windows Communication Foundation (WCF) service that allows customers to update financial data.

The service contract is defined as follows. (Line numbers are included for reference only.)

You need to ensure that the service is invoked within a transaction.

What should you do?

  • A

    Replace line 01 with the following code.
    <ServiceContract(
    SessionMode:=SessionMode.NotAllowed)>

  • B

    Replace line 01 with the following code.
    <ServiceContract(
    SessionMode:=SessionMode.Required)>

  • C

    Insert the following code at line 09.
    <ServiceBehavior(
    TransactionAutoCompleteOnSessionClose:=False)>

  • D

    Insert the following code at line 09.
    <ServiceBehavior(
    ReleaseServiceInstanceOnTransactionComplete:=False)>

Previous Next