This is code in PhysicalFileProvider:
There are at least 3 things wrong with it:
GC.SuppressFinalize when it is directly disposed.We should correctly implement the IDisposable pattern on this class.
Tagging subscribers to this area: @maryamariyan
See info in area-owners.md if you want to be subscribed.
I will prepare a PR for this
Most helpful comment
Same bugs here too:
https://github.com/dotnet/runtime/blob/aa5fdab9654d74bc6274c0b5d820272c8e859621/src/libraries/Microsoft.Extensions.FileProviders.Physical/src/PhysicalFilesWatcher.cs#L231-L249