Closed jadamcrain closed 6 years ago
The response handler could be registered in the ScheduledRequest
class, shouldn't be too difficult. Would you remove the ISessionResponseHandler
altogether?
Yeah, I think so. If somebody wants the same action for a set of polls, they can just pass the same response handler to all of them.
In retrospect, I wish opendnp3 had this for polls and only had the global one for unsolicited responses.
Not a blocking issue ATM, but recording this here for another iteration. Just a placeholder for future discussion.
I found myself wanting to be able to differentiate which scheduled poll completed/failed/etc. Making this switch will allow context specific handlers for scheduled polls.