LiteX.Storage.Local is a storage library which is based on LiteX.Storage.Core and Local FileSystem.
This client library enables working with the Local FileSystem Storage service for storing binary/blob data.
Small library to abstract storing files to Local FileSystem. Quick setup for Local FileSystem and very simple wrapper for the Local FileSystem Storage to handle container instantiations.
Very simple configuration in advanced ways. Purpose of this package is to bring a new level of ease to the developers who deal with Local FileSystem Storage integration with their system.
Install via Nuget.
PM> Install-Package LiteX.Storage.Local
{
//LiteX Local File System Storage settings
"FileSystemBlobConfig": {
"Directory": "--- REPLACE WITH YOUR LOCAL FILE SYSTEM DIRECTORY ---",
"EnableLogging": true
}
}
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
// 1. Use default configuration from appsettings.json's 'FileSystemBlobConfig'
services.AddLiteXFileSystemBlobService();
//OR
// 2. Load configuration settings using options.
services.AddLiteXFileSystemBlobService(option =>
{
option.Directory = "UploadFolder";
option.EnableLogging = true;
});
//OR
// 3. Load configuration settings on your own.
// (e.g. appsettings, database, hardcoded)
var fileSystemBlobConfig = new FileSystemBlobConfig()
{
Directory = "",
EnableLogging = true
};
services.AddLiteXFileSystemBlobService(fileSystemBlobConfig);
// add logging (optional)
services.AddLiteXLogging();
}
}
Same for all providers.
For more helpful information about LiteX Storage, Please click here.