Skip to content
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

[Feature Request] None throwing connectivity-check #690

Closed
WhatzGames opened this issue Mar 13, 2023 · 3 comments · Fixed by #693
Closed

[Feature Request] None throwing connectivity-check #690

WhatzGames opened this issue Mar 13, 2023 · 3 comments · Fixed by #693

Comments

@WhatzGames
Copy link

I have a case where I do not care for the reason of connectivity issues. I just need to know whether or not i am able to connect, that's it.
Maybe another option, as shown below could be a plausible option?

namespace Neo4j.Driver;

public interface IDriver
{
    public Task<bool> TryVerifyConnectivityAsync();
}
@thelonelyvulpes
Copy link
Contributor

@WhatzGames Thank you for you suggestion, I have had this on my personal backlog to implement for good while. I think what we will do is something like Task<bool> TryGetServerInfoAsync(out IServerInfo)

@WhatzGames
Copy link
Author

WhatzGames commented Mar 14, 2023

@thelonelyvulpes That would be nice. If i recall it correctly, asynchronous operations do not allow out parameters

@thelonelyvulpes thelonelyvulpes linked a pull request Mar 17, 2023 that will close this issue
@thelonelyvulpes
Copy link
Contributor

Will be available in 5.7+ which should be available next month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants