Process a batch of items, return an object to report on status
- by Naeem Sarfraz
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?