-
Notifications
You must be signed in to change notification settings - Fork 470
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
Support replication of attributes defined in AttributesToAlwaysReplicate list #633
Support replication of attributes defined in AttributesToAlwaysReplicate list #633
Conversation
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.
Sorry it took me so abysmally long to review this.
I'm in favor of this change, however there's one detail that might need adjusting before we merge... see review comment below.
P.S. could you please also add a new entry to CHANGELOG.md
for this new feature?
# Castle Core Changelog
# Unreleased
Enhancements:
- ...
+- <Short description of the new feature goes here> (@shoaibshakeel381, #633)
## 5.1.1 (2022-12-30)
src/Castle.Core/DynamicProxy/Generators/AttributesToAlwaysReplicate.cs
Outdated
Show resolved
Hide resolved
- This is complementary to AttributesToAvoidReplicating - This will allow consumers to specify attributes which should always be copied to generated proxy. It is especially useful where we do not own target interfeces and/or cannot override attributes, e.g. attributes used by various frameworks. This was mentioned in castleproject#593 - Similar effect could by achieved in Castle.Core Version 4.4.1 by simply extending various generator classes but in 5.0 all those classes were marked internal, without this fix we now have to override half the library, So this fix offers an alternative path. - Fixes castleproject#607
6787f3d
to
af9a8ab
Compare
@stakx I have applied all requested changes. Please review |
Looks good to me! Thanks for your contribution @shoaibshakeel381, and sorry again for letting you wait so long. P.S. and sorry if I merged your commits too soon, perhaps I should have squashed them or let you do so first. Hope you don't mind too much. |
AttributesToAvoidReplicating