Skip to content

Conversation

mus65
Copy link
Contributor

@mus65 mus65 commented Jan 6, 2024

This removes feature flags that were unused. FEATURE_SOCKET_EAP and FEATURE_DNS_SYNC were set for all frameworks, so unneeded. The other feature flags were only used in elif of FEATURE_SOCKET_EAP and FEATURE_DNS_SYNC, so also unneeded.

After removing these, DnsAbstractions.cs seemed to be an unneeded abstraction at first, but then I noticed that .NET 6+ supports a cancellationToken on GetHostAddressesAsync, so I kept DnsAbstractions.cs to pass this through (I could do a separate PR for this if you want).

mus65 added 2 commits January 6, 2024 12:21
FEATURE_SOCKET_EAP and FEATURE_DNS_SYNC were set for all
frameworks, so unneeded. The other feature flags were
only used in elif of FEATURE_SOCKET_EAP and FEATURE_DNS_SYNC,
so also unneeded.
@mus65 mus65 changed the title Remove unneeded feature flags and pass cancellationToken DNS request Remove unneeded feature flags and pass cancellationToken to DNS request Jan 6, 2024
@WojciechNagorski WojciechNagorski self-assigned this Jan 7, 2024
@WojciechNagorski WojciechNagorski merged commit 13a6b5d into sshnet:develop Jan 7, 2024
@WojciechNagorski
Copy link
Collaborator

This issue has been fixed in the 2024.0.0 version.

@WojciechNagorski WojciechNagorski added this to the 2024.0.0 milestone Feb 22, 2024
@mus65 mus65 deleted the removefeatureflags branch September 14, 2024 09:30
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.

3 participants