Hi,
I have a client application that should be able to handle the following:
1) Request sql statments that are to to be executed against the client. 2) Request Service Packs or Hoxfixes that will be executed against to the client. 3) There may be more types of tasks the client could do in the future.
Executing each of these task types produces some kind of Result. For the sql statements, the results is a dataset, that I'm serializing back to the server via WCF method call, so the data can be saved. Although I haven't gotten to this point of development yet, I can assume that the result of a service pack execution may be an indication of the execution status. i.e. Sucess, Fail, ErrorMessage. This infomation would also need to be transfered over the wire via WCF so that it can get recorded. So far there are two result possibilities. This varying return information could be put into a class like "ExecutionResults" but the actions taken to save each type of ExecutionResult will be different.
The question is should I go through the trouble of trying to setup a shared (abstract type) that both client and server know about and then convert this type to the correct concrete type on the server? Or should I just create a separate service method for each of these different scenarios?