AzureBlobAdapterAssembly 1.0.0
See the version list below for details.
dotnet add package AzureBlobAdapterAssembly --version 1.0.0
NuGet\Install-Package AzureBlobAdapterAssembly -Version 1.0.0
<PackageReference Include="AzureBlobAdapterAssembly" Version="1.0.0" />
paket add AzureBlobAdapterAssembly --version 1.0.0
#r "nuget: AzureBlobAdapterAssembly, 1.0.0"
// Install AzureBlobAdapterAssembly as a Cake Addin #addin nuget:?package=AzureBlobAdapterAssembly&version=1.0.0 // Install AzureBlobAdapterAssembly as a Cake Tool #tool nuget:?package=AzureBlobAdapterAssembly&version=1.0.0
AzureBlobAdapter
This is an adapter for the Azure Blob Storage to integrate with the existing .NET System.IO based file system access code with little or no changes.
Design Guidelines
This library implements the interfaces of the System.IO.Abstractions package. The System.IO.Abstractions NuGet package provides a layer of abstraction over the file system that is API-compatible with the existing code. They help to make file access code more unit testable as well.
This library uses the latest version of Azure Blob SDK - version 12.x
Directories are supported via the latest version of Azure Data Lake Storage. It Combines the power of a Hadoop compatible file system with integrated hierarchical namespace with the massive scale and economy of Azure Blob Storage to help speed your transition from proof of concept to production. Refer documentation, SDK, Samples, source code.
The class library is implemented in .NET Standard 2.0. So that it will support both
- The most widely used and the legacy .NET Framework and
- the latest .NET core applications
Drives and shared folders are implemented via the containers. The drive letters and shared folders can be mounted via mount points via settings.
Differences between System.IO and AzureBlobAdapter
- This is an adapter, not an emulator. Meaning IO function calls are redirected to the Blob storage wrappers instead of file systems calls. All the method signatures are 100% compatible with the existing method declarations.
- As the internal implementations of Azure Blob SDK and System.IO Library are different, parameter validations and the exceptions thrown by blob SDK are different from the file system calls. They have to be addressed by the client applications.
- The Azure blob needs to be initialized with the connection strings and to be injected into the application via these interfaces. But the file system can be used directly
- Many functionalities of the file systems are not available with the Blob. Example: FileSystemSecurity (audits, access rules, etc).
- The advanced features in the Blob storage don't exist in file system calls. So they have to be accessed via separate interfaces and not accessible via these interfaces.
Implemented functionality summary
- Most of the time in the .NET applications, we create/update/deleting/listing files and directories. (CRUD)
- File and Directory Information - Work in progress
Implemented Interfaces and Methods
Interface | Remarks |
---|---|
IFileSystem | IFile, IDriveInfoFactory, IPath |
IFile | Implemented create, append, read, delete, copy, move and rename file operations for both text and binary files. Methods for continuous Stream based create/update operations, individual file level encryption/decryption, read/change AccessControl and Attributes |
IDriveInfoFactory | 100% |
IDriveInfo | Name, IsReady |
IDirectory | Implemented create, list/enumerate, delete, copy, move and rename directory operations. Methods for reading/or to change DirectorySecurity and Attributes |
Todos
- Write MORE Tests
License
MIT
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Azure.Storage.Blobs (>= 12.4.4)
- Azure.Storage.Files.DataLake (>= 12.2.2)
- Microsoft.CSharp (>= 4.7.0)
- System.IO.Abstractions (>= 12.0.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.