-
Notifications
You must be signed in to change notification settings - Fork 82
expose NoopChangeToken, NotFoundDirectoryContents, NotFoundFileInfo as public #195
Conversation
Hi @Driedas, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! TTYL, DNFBOT; |
@Driedas, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR. |
@@ -6,7 +6,7 @@ | |||
|
|||
namespace Microsoft.Extensions.FileProviders | |||
{ | |||
internal class NoopChangeToken : IChangeToken | |||
public class NoopChangeToken : IChangeToken |
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.
Naming concern since we're making this type public - should this be called NullChangeToken
? We name other things similarly e.g. NullLogger
for things that don't do much. Thoughts @Eilon ?
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.
Yeah I suppose this is basically the Null Pattern.
@pranavkm do we need a bunch of reaction PRs in other repos for this? I suspect this might be a slightly destabilizing change due to other repos needing to react to this. |
Oh actually I wonder if perhaps this is totally safe because the type is moving from being internal in |
Yeah, the move should be fine and the rename too since it doesn't look like it's used outside of this repo. |
@pranavkm renamed the NoopChangeToken to NullChangeToken and added the comment for NotFoundDirectoryContents, as per your comments |
@Driedas that sounds good. |
Let me know when you've have added the resx string and I'll merge this in. |
@pranavkm comment added |
Squashing it would be great. |
…s public, move to Abstractions
done... |
Thanks! |
@Driedas thanks for the PR! |
changes as per the discussion on issue #145
unit tests passing (executed via dotnet test)