This .NET Standard 2.0 library sets a contract to abstract a file storage system.
The specific adaptations must implement the IStorageProvider
interface and the interfaces following from its methods:
IStorageProvider | Root contract for handling files of a storage system. Used to obtain IStorageClients. Implementations must be thread-safe. |
IStorageClient | A client for accessing IStorageContainers. |
IStorageContainer | Represents a storage container in which IStorageFiles can be read or written. |
IStorageFile | Represents a file in a IStorageContainer. |
Use your preferred dependency injection framework to obtain a singleton IStorageProvider
instance. The project
Grammophone.Storage.Azure provides an implementation for Azure blob storage.
This library has no dependencies.