-
Notifications
You must be signed in to change notification settings - Fork 899
Add IBelongToARepository #806
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
Conversation
Do we need to implement the interface for every derived types once the base ones expose it? Note: |
/// <param name="canonicalName">The canonical name.</param> | ||
/// <param name="targetIdentifier">The target identifier.</param> | ||
protected Reference(string canonicalName, string targetIdentifier) | ||
protected Reference(IRepository repo, string canonicalName, string targetIdentifier) |
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.
Doesn't this break the API?
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.
So it does, though this ctor was never meant for public consumption. I've marked this one as [Obsolete]
in favor of an internal
one with the new signature.
On closer inspection, the namespace is not actually unused...R# got confused. |
Fixed and added new meta test. Failure looks like this:
|
0549b3a
to
ee0d0b7
Compare
So my first pass at this was basically terrible. Trying again, with some sanity check tests for good measure. |
/// </summary> | ||
IRepository Repository { get; } | ||
} | ||
} |
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.
Let's take a moment of silence to reflect on all the good things POSIX has brought us
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.
Fixed!
I don't hear anyone strongly opposing to this. Let's move it in. Could you please rebase this PR? |
Done |
It's a go! 👍 |
As discussed in #574 and #665, here's an interface that allows access to an instance's corresponding
IRepository
for certain (non-standard) usage patterns.TODO: