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
Add ConfigurationDependencyAttribute to help with referenced assemblies ... #898
Add ConfigurationDependencyAttribute to help with referenced assemblies ... #898
Conversation
Current coverage is 73.68% (diff: 100%)@@ dev #898 diff @@
==========================================
Files 69 70 +1
Lines 3195 3200 +5
Methods 695 697 +2
Messages 0 0
Branches 358 358
==========================================
+ Hits 2353 2358 +5
Misses 672 672
Partials 170 170
|
@@ -0,0 +1,27 @@ | |||
using System; | |||
|
|||
namespace Serilog.Build |
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.
I still think Serilog.Settings.ConfigurationDependencyAttribute
is a more self-describing name and namespace for the type. The attribute is only likely to be used in conjunction with XML or JSON settings, so focusing it on that scenario has some discoverability benefits even if it could be used for other purposes.
/// Gets the dependent type reference. | ||
/// </summary> | ||
/// <value>The dependent type reference.</value> | ||
public Type DependentType { get; private set; } |
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.
Dependent, to me, is the thing that "does-the-depending" (i.e. the inverse direction). Maybe Dependency
?
/// <summary> | ||
/// Initializes a new instance of the <see cref="ImplicitDependencyAttribute"/> class. | ||
/// </summary> | ||
/// <param name="dependentType"></param> |
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.
A type from the assembly that is used dynamically.
…es not being copied over
d873fce
to
5c5f5e2
Compare
@nblumhardt PR amended based on your comments |
Looks good, thanks @caioproiete. I wondered for a moment if |
No strong feelings there. The But yes, the |
👍 let's stick with Need to investigate #880 a little further before merging, but LGTM here. |
Bug fixed with most recent version of ReSharper. |
… not being copied over.
As per discussion on #880