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

Adding support for netstandard2.0 #8

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

Conversation

lstratman
Copy link

First off, excellent library, thanks so much for making this available. You are miles ahead of any other C# VNC library out there and the integration work necessary to drop this into EasyConnect was straightforward and well designed.

This pull request does a few things:

  1. Adds support for netstandard2.0, which allowed me to use this library in a .NET Framework application. Some of the Span-based API shims necessary for this aren't quite as efficient as their .NET Core counterparts, but they still use ArrayPools to reduce allocations and perform perfectly well in my testing.
  2. Adds support for the ClientCutText message type. Figured I would take care of this while I was in there messing about.
  3. Calls to CloseAsync() no longer throw uncaught exceptions when winding down the message threads. I made a few changes not to throw exceptions when the message thread workers detect cancellation and to to swallow OperationCancelledException, but if there is a better way to close a connection (while not exiting the entire application), feel free to let me know.

Once again, thanks for all of your hard work on this library!

@MarcusWichelmann MarcusWichelmann self-requested a review May 13, 2021 15:44
@MarcusWichelmann MarcusWichelmann self-assigned this May 13, 2021
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.

2 participants