File Providers for .NET
Implements unified file system abstractions and change monitoring in .NET applications using Microsoft.Extensions.FileProviders.
The File Providers skill guides developers in implementing unified file access abstractions using Microsoft.Extensions.FileProviders in .NET and ASP.NET Core applications. It covers architectural patterns for reading files from physical disks, embedded assembly resources, and composite layered sources with fallback support. The skill provides practical guidance on setting up glob-based file watching with IChangeToken, registering providers with dependency injection, properly handling resource disposal, and creating testable file-handling layers without coupling code to direct disk I/O.
주요 기능
01Configure reactive file change monitoring using glob patterns and IChangeToken
02Abstract file access across physical directories, embedded assembly resources, and composite sources
03577 GitHub stars
04Optimize resource handling and avoid common pitfalls like FileSystemWatcher leaks
05Implement priority-based file override patterns using CompositeFileProvider
06Integrate file providers seamlessly into Microsoft.Extensions dependency injection
사용 사례
01Monitoring configuration and static resource files for real-time live reloading without application restarts
02Abstracting template and configuration loading to allow user file overrides on top of embedded defaults
03Decoupling file system operations in service classes to enable deterministic unit testing