In WCF, transaction can be propagated across service boundary. This enables service to participate in a client transaction and it includes multiple services in same transaction, Client itself will act as service or client.
We can specify whether or not client transaction is propagated to service by changing Binding and operational contract configuration
Even after enabling transaction flow does not mean that the service wants to use the clientâ€™s transaction in every operation. We need to specify the â€œTransactionFlowAttributeâ€ in operational contract to enable transaction flow.
public interface IService
int Add(int a, int b);
int Subtract(int a, int b);
Note: TransactionFlow can be enabled only at the operation level not at the service level.