Designing WCF interface: no out or ref parameters

Posted by Captain Comic on Stack Overflow See other posts from Stack Overflow or by Captain Comic
Published on 2010-05-21T12:54:42Z Indexed on 2010/05/21 13:00 UTC
Read the original article Hit count: 144

Filed under:
|

I have a WCF service and web client. Web service implements one method SubmitOrders. This method takes a collection of orders. The problem is that service must return an array of results for each order - true or false. Marking WCF paramters as out or ref makes no sense. What would you recommend?

[ServiceContact]
public bool SubmitOrders(OrdersInfo)

[DataContract]
public class OrdersInfo
{
  Order[] Orders;
}

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET