-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ConnectionOpenedCallback #1515
Conversation
This differs from the existing StateChanged event in that: - it supports an async callback - it's only invoked when a connection is opened - it provides information about new vs existing and whether the connection was reset Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
This will make it easier to add additional properties in the future if they're ever needed. Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Rename type to 'Context'; this matches the existing UsePeriodicPasswordProvider. Add CancellationToken; the user might execute commands against the server that might need to be cancelled. Remove sync overload; it could be unnecessary. Move types to their own files. Allow multiple callbacks to be added. Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Thanks for this! However I'm struggling to see how this should be used when creating a |
Documentation isn't fully updated yet, but you need to use
|
Fixes #1508.
This differs from the existing
StateChanged
event in that:Opening for API review. Needs tests before it can be merged.