2009-08-09, 10:00
Nicezia Wrote:2). The Results are recieved by subscribing to the event (i.e. Manager.ResultsRetrieved += new RecievedResultsHandler(myHandlerFunction) [ResultsRetrieved sends a <List>ScrapreResultsEntity] Manager.RetrievedXxxxxDetails += new XxxxxDetailsRetrievedHandler(myDetailsHandlerFunction) [RetrievedXxxxxDetails (where Xxxxx is the type of item i.e movie tvshow Episode, etc sends a object which is actually the tag for whichever kind of search is performed] since i suck at threading so far, it won't actually run on another thread its up to the program to handle that) there is also a NoResultsFound event to in the case that there are no results. the delegate retrieves no input and returns no output.Can you talk a little bit about why you made this change? I'm finding this eventing model much more cumbersome to program to than the previous synchronous model, and looking at the source it seems like it would be trivial to just return the results from the individual function calls. Is the eventing model a requirement coming from the changes to the ScraperManager broader change or was there some other reason for it?
In the meantime I'm going to try to add return types to the various GetResults and GetDetails calls and see what happens.