CloudStorageSDK 1.0.1
dotnet add package CloudStorageSDK --version 1.0.1
NuGet\Install-Package CloudStorageSDK -Version 1.0.1
<PackageReference Include="CloudStorageSDK" Version="1.0.1" />
<PackageVersion Include="CloudStorageSDK" Version="1.0.1" />
<PackageReference Include="CloudStorageSDK" />
paket add CloudStorageSDK --version 1.0.1
#r "nuget: CloudStorageSDK, 1.0.1"
#:package CloudStorageSDK@1.0.1
#addin nuget:?package=CloudStorageSDK&version=1.0.1
#tool nuget:?package=CloudStorageSDK&version=1.0.1
CloudStorageSDK CloudStorageSDK is a unified service that simplifies interactions with Azure Blob Storage, AWS S3, and Google Cloud Storage. It provides a consistent interface for uploading, downloading, and managing files across these cloud platforms.
Features Unified Interface: Seamlessly interact with Azure Blob Storage, AWS S3, and Google Cloud Storage using a consistent API. File Operations: Easily upload, download, and delete files across multiple cloud platforms. Cross-Platform Support: Compatible with .NET 6.0 and above. Installation To install CloudStorageSDK, use the NuGet Package Manager or the .NET CLI.
Using NuGet Package Manager:
Open the NuGet Package Manager in Visual Studio. Search for CloudStorageSDK. Click Install. Using .NET CLI:
dotnet add package CloudStorageSDK
Configuration Before using the SDK, configure your cloud storage settings.
Azure Blob Storage:
Connection String: Obtain your connection string from the Azure portal. Container Name: Specify the name of your Azure Blob Storage container. AWS S3:
Access Key ID: Your AWS access key ID. Secret Access Key: Your AWS secret access key. Bucket Name: The name of your S3 bucket. Google Cloud Storage:
Project ID: Your Google Cloud project ID. Bucket Name: The name of your Google Cloud Storage bucket. Credentials File: Path to your service account key file.
var storageService = new CloudStorageService( azureConnectionString: "YourAzureConnectionString", awsAccessKeyId: "YourAWSAccessKeyId", awsSecretAccessKey: "YourAWSSecretAccessKey", googleProjectId: "YourGoogleProjectId", googleCredentialsFile: "PathToYourGoogleCredentialsFile" );
// Upload to Azure Blob Storage await storageService.UploadFileAsync("azure-container-name", "local-file-path", "azure-blob-name");
// Upload to AWS S3 await storageService.UploadFileAsync("aws-bucket-name", "local-file-path", "aws-object-key");
// Upload to Google Cloud Storage await storageService.UploadFileAsync("google-bucket-name", "local-file-path", "google-object-name");
// Download from Azure Blob Storage await storageService.DownloadFileAsync("azure-container-name", "azure-blob-name", "local-file-path");
// Download from AWS S3 await storageService.DownloadFileAsync("aws-bucket-name", "aws-object-key", "local-file-path");
// Download from Google Cloud Storage await storageService.DownloadFileAsync("google-bucket-name", "google-object-name", "local-file-path");
// Delete from Azure Blob Storage await storageService.DeleteFileAsync("azure-container-name", "azure-blob-name");
// Delete from AWS S3 await storageService.DeleteFileAsync("aws-bucket-name", "aws-object-key");
// Delete from Google Cloud Storage await storageService.DeleteFileAsync("google-bucket-name", "google-object-name");
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- AWSSDK.S3 (>= 3.7.415.18)
- Azure.Storage.Blobs (>= 12.24.0)
- Google.Cloud.Storage.V1 (>= 4.11.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.