Skip to content

Instantly share code, notes, and snippets.

@jdeoliveira
Created July 1, 2012 00:59
Show Gist options
  • Save jdeoliveira/3026321 to your computer and use it in GitHub Desktop.
Save jdeoliveira/3026321 to your computer and use it in GitHub Desktop.
WCF retail service implementation
public class WCFRetailService : IWCFRetailService
{
public string CreateOrder(Order order) {
Random random = new Random();
int newOrderId = random.Next();
order.Id = newOrderId.ToString();
// do something with the order...
System.Diagnostics.Debug.WriteLine("Order received: " + order.Id + "; product id: " + order.ProductId + "; quantity: " + order.Quantity);
return order.Id;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment