Example #1
0
 static void Main()
 {
     using (TransactionScope tx = new TransactionScope())
     {
         OrderService.IOrderService proxy = new OrderService.OrderServiceClient();
         proxy.StartPlaceOrder("Order1");
         proxy.AddOrderItem("Parrot", 2);
         proxy.AddOrderItem("Dog", 3);
         proxy.FinishedPlaceOrder();
         Cleanup(proxy);
         tx.Complete();
     }
 }