-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Connection Helper #473
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
Connection Helper #473
Conversation
Expose ConnectionType Rework IsInternetAvailable property
Hi @hermitdave, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! TTYL, DNFBOT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far, I think the ConnectionHelper
class now helps in most of the cases 👍
/// <summary> | ||
/// No network connection - offline | ||
/// </summary> | ||
/// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line can be removed.
</None> | ||
<None Include="project.json" /> | ||
<None Include="stylecop.json" /> | ||
<None Include="stylecop1.json" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the stylecop.json
files don't belong to this PR. Please remove the lines from the project file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jlnostr done.. added those by mistake.. removed and pushed
Removed Offline ConnectionType Defaulting to Unknown ConnectionType
Do you mind signing the new DNF CLA? |
@hermitdave, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR. |
There is always UWP alternative as we are only using UWP code ;) But here I think the helper is clearly about centralizing things that could be on NetworkInformation or ConnectionProfile. This is not rocket science but more a convenient layer on top of the SDK (a lot of our helpers are like this) |
@ThreeFive-O I think the purpose of this is to offer explicit properties so that the dev just has one call to make, rather than several. |
Yeah, I realized when looking more closely at the code. This is why I deleted my comment, but then again, the word was already out :D Pardon me! |
Please don't apologize. This is a community project. We all need to discuss. We cannot have a single opinion. This is great. |
Expose ConnectionType property
Rework IsInternetAvailable property
Work on #455