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

Various cleanups of Connection / Model #1009

Merged
merged 7 commits into from
Feb 11, 2021

Conversation

bollhals
Copy link
Contributor

Proposed Changes

various smaller cleanups mainly in connection and model classes.

  • change access modifier to public if they're really public, internal if only called from within the lib, protected/private otherwise.
  • removed old ifdef !NETSTANDARD1.5
  • move DebugUtil out of lib code to the test class
  • removed various unused types / methods
  • removed IFullModel as it could either be used as ModelBase or it was test code
  • removed unset property of IConnection
  • removed 2 methods in IConnection, that should've been internal

Types of Changes

  • Bug fix (non-breaking change which fixes issue #NNNN)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause an observable behavior change in existing systems)
  • Documentation improvements (corrections, new content, etc)
  • Cosmetic change (whitespace, formatting, etc)

Checklist

  • I have read the CONTRIBUTING.md document
  • I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
  • All tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in related repositories

Further Comments

This PR contains some small public API changes!

@bollhals
Copy link
Contributor Author

Size of lib drops for me from 213 KB (218'624 Bytes) -> 206 KB (211'456 Bytes)

@bollhals bollhals changed the title Feature/cleanups Various cleanups of Connection / Model Jan 26, 2021
@michaelklishin
Copy link
Member

@bollhals this now needs a rebase against master 🙏

@bollhals
Copy link
Contributor Author

@bollhals this now needs a rebase against master 🙏

done 👍

@michaelklishin
Copy link
Member

…and this now needs another rebase.

@bollhals
Copy link
Contributor Author

Will do 😃

@bollhals
Copy link
Contributor Author

done 👍 this should be ready

@bollhals bollhals mentioned this pull request Jan 29, 2021
11 tasks
@bollhals
Copy link
Contributor Author

bollhals commented Feb 1, 2021

Can we proceed with this or is there something to look at?

@bollhals
Copy link
Contributor Author

bollhals commented Feb 6, 2021

@michaelklishin can we proceed with this?

@michaelklishin michaelklishin merged commit 0876795 into rabbitmq:master Feb 11, 2021
@bollhals bollhals deleted the feature/cleanups branch February 11, 2021 07:35
eerhardt added a commit to eerhardt/rabbitmq-dotnet-client that referenced this pull request Jan 12, 2024
The allows the 6.x library to be used in trimmed and native AOT'd applications without any warnings.

Since the 6.x branch doesn't target net6.0+, it only targets netstandard2.0 and net462, the #if NET6_0_OR_GREATER checks don't do anything.

To resolve this issue, and copy the trimming attributes into this library following the recommendation at https://devblogs.microsoft.com/dotnet/creating-aot-compatible-libraries/#approach-2-define-the-attributes-internally. This allows the library to apply the attributes without targeting net6.0+.

Also moving DebugUtil to the test project - porting rabbitmq#1009 from the main branch.

Contributes to rabbitmq#1410
lukebakken pushed a commit to eerhardt/rabbitmq-dotnet-client that referenced this pull request Feb 13, 2024
The allows the 6.x library to be used in trimmed and native AOT'd applications without any warnings.

Since the 6.x branch doesn't target net6.0+, it only targets netstandard2.0 and net462, the #if NET6_0_OR_GREATER checks don't do anything.

To resolve this issue, and copy the trimming attributes into this library following the recommendation at https://devblogs.microsoft.com/dotnet/creating-aot-compatible-libraries/#approach-2-define-the-attributes-internally. This allows the library to apply the attributes without targeting net6.0+.

Also moving DebugUtil to the test project - porting rabbitmq#1009 from the main branch.

Contributes to rabbitmq#1410

Add AotCompatibility.TestApp

Add PS1 to run test app

Add AOT test to windows GHA
lukebakken pushed a commit that referenced this pull request Feb 13, 2024
The allows the 6.x library to be used in trimmed and native AOT'd applications without any warnings.

Since the 6.x branch doesn't target net6.0+, it only targets netstandard2.0 and net462, the #if NET6_0_OR_GREATER checks don't do anything.

To resolve this issue, and copy the trimming attributes into this library following the recommendation at https://devblogs.microsoft.com/dotnet/creating-aot-compatible-libraries/#approach-2-define-the-attributes-internally. This allows the library to apply the attributes without targeting net6.0+.

Also moving DebugUtil to the test project - porting #1009 from the main branch.

Contributes to #1410

Add AotCompatibility.TestApp

Add PS1 to run test app

Add AOT test to windows GHA
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