Process a batch of items, return an object to report on status

Posted by Naeem Sarfraz on Stack Overflow See other posts from Stack Overflow or by Naeem Sarfraz
Published on 2010-06-02T15:01:55Z Indexed on 2010/06/02 15:03 UTC
Read the original article Hit count: 245

Filed under:
|

I'm looking for a pattern (or good practice) for the following scenario:

My function List<BatchItemResponse> Process(List<BatchItem> Data) {..} will process a list of data, and return info on where each item in the batch could be processed.

struct BatchItemResponse { int BatchItemID; bool Processed; string Description; }

Any thoughts? Is what I've proposed as good as it gets?

© Stack Overflow or respective owner

Related posts about c#

Related posts about design-patterns