How can you ensure that PassGuideOp1 and PassGuideOp2 runs within the same transaction whenever they are called within the same session?

DRAG DROP
Service implementation exhibit:
class PassGuideService: IPassGuideService
{
public void PassGuideOp1(string value) {}
public void PassGuideOp2(string value) { }
}
Contract exhibit:
[ServiceContract(SessionMode s SessionMode Required)]
public interface IPassGuideService
{
[OperationContract(IsOneWay = true, IsInitiating = true)]
void PassGuideOp1(string value);
[OperationContract(IsOneWay = true, IsInitiating = false)]

void PassGuideOp2(string value);
}
There is a WCF (Windows Communication Foundation) service PassGuideService.
The contract and implementation of PassGuideService is being displayed in the exhibits.
NetMsmqBinding us used by PassGuideService to listen for messages.
The queue is configured to use transactions for removing and adding messages.
How can you ensure that PassGuideOp1 and PassGuideOp2 runs within the same transaction
whenever they are called within the same session?

DRAG DROP
Service implementation exhibit:
class PassGuideService: IPassGuideService
{
public void PassGuideOp1(string value) {}
public void PassGuideOp2(string value) { }
}
Contract exhibit:
[ServiceContract(SessionMode s SessionMode Required)]
public interface IPassGuideService
{
[OperationContract(IsOneWay = true, IsInitiating = true)]
void PassGuideOp1(string value);
[OperationContract(IsOneWay = true, IsInitiating = false)]

void PassGuideOp2(string value);
}
There is a WCF (Windows Communication Foundation) service PassGuideService.
The contract and implementation of PassGuideService is being displayed in the exhibits.
NetMsmqBinding us used by PassGuideService to listen for messages.
The queue is configured to use transactions for removing and adding messages.
How can you ensure that PassGuideOp1 and PassGuideOp2 runs within the same transaction
whenever they are called within the same session?

Answer:

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *