The Dangl.AspNetCore.FileHandling package offers reusable tasks for projects that deal with file I/O, for example disk or Azure Blob storage access.
FileHandlerDefaults class defines limits to adhere to when using file and container names. It is enforced to ensure a compatibility with Azure blob storage.
IFileHandler interface defines how to store and retrieve files.
DiskFileHandler works by storing files on a disk drive.
For test purposes, the
InMemoryFileHandler offers additional features like
ClearFiles() to reset all saved files and a property
SavedFiles to access all saved files.
This implementation works against Azure Blob Storage. Additionally, it has a
Task<RepositoryResult> EnsureContainerCreated(string container) for initialization purposes.
Azure Blob containers must be created before they can be accessed.
StringExtensions class has a static extension method
string WithMaxLength(this string value, int maxLength).
This library offers extensions for dependency injection:
Assembly Strong Naming & Usage in Signed Applications
This module produces strong named assemblies when compiled. When consumers of this package require strongly named assemblies, for example when they
themselves are signed, the outputs should work as-is.
The key file to create the strong name is adjacent to the
csproj file in the root of the source project. Please note that this does not increase
security or provide tamper-proof binaries, as the key is available in the source code per