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

Modernisation and bug-fixes #22

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

las-nsc
Copy link

@las-nsc las-nsc commented Sep 9, 2021

  • Upgrade project format to SDK-style
  • Fix Sharp.Xmpp references and added missing Extension enum values
  • Apply code style suggestions throughout project
    • Removed event Raise extension method, in favour of built-in ?.Invoke
    • Replaced ThrowIfNull strings with nameof equivalent (fixed some mistakes)
  • Enabled NRT and C#9, fixed all NRT warnings
    • Replaced string.IsNullOrEmpty and string.IsNullOrWhitespace with NRT-friendly alternatives
    • Changed XmppCore and XmppIm to initialise and connect upon construction to simplify nullability of some variables
    • Changed XmppIm extension construction to use simple dependency resolution to simplify nullability of some variables
    • Added guards for various variables which were being used when potentially null
    • Throw exception when getting missing XML-derived property values to avoid nullability
  • Removed constructors for XmppCore and XmppIm without username and password as they make no sense.
  • Made JID equality check case insensitive
  • Added retry for send/receive of IQ request/response, since sometimes it was timing out (restored exception).

@las-nsc las-nsc changed the title Modernisation an bug-fixes Modernisation and bug-fixes Sep 9, 2021
@sonarcloud
Copy link

sonarcloud bot commented Sep 24, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@las-nsc las-nsc marked this pull request as ready for review September 28, 2021 14:37
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 this pull request may close these issues.

1 participant