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

Watch() extension method that allows include and exclude list. #15

Open
dazinator opened this issue Dec 18, 2016 · 1 comment
Open

Watch() extension method that allows include and exclude list. #15

dazinator opened this issue Dec 18, 2016 · 1 comment
Assignees

Comments

@dazinator
Copy link
Owner

Implement an extension method for IFileProvider that allows you to watch() for files, but using an include list and exclude list (of glob patterns, using DotNet.Glob

Have raised an issue to see if microsoft would consider putting this in the IFileProvider contract, as it allows more granular control of which files you are monitoring, which could be better for performance reasons:
aspnet/FileSystem#253

@dazinator dazinator self-assigned this Dec 18, 2016
@dazinator
Copy link
Owner Author

The way I see this working, is to call Watch() on the underlying provider for each include pattern. Then evaluate the exclude patterns after the change tokens from the underlying provider are signalled. To do this, I need to be able to tell which file triggered the change token. May not be possible.

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

No branches or pull requests

1 participant