Skip to content

Getting Started

Robin Rodricks edited this page Jan 27, 2023 · 5 revisions

Nugets

To get started, add the main FluentStorage Nuget package into your .NET application.

Then add the packages you need as per the cloud storage providers you want to use.

Connect to blob storage

To construct storage classes, you need to use the factory methods.

Factory method Package Purpose
StorageFactory.Blobs.FromConnectionString FluentStorage Creates a blob storage instance from a connection string
StorageFactory.Blobs.DirectoryFiles FluentStorage Creates a storage for a specific disk directory
StorageFactory.Blobs.InMemory FluentStorage Creates a storage which stores everyting in memory
StorageFactory.Blobs.Virtual FluentStorage Creates a virtual storage where you can mount other storage providers to a specific virtual directory
StorageFactory.Blobs.AwsS3 FluentStorage.AWS Creates an AWS S3 storage bucket or custom S3-compatible storage server.
StorageFactory.Blobs.GoogleCloudStorageFromEnvironmentVariable FluentStorage.GCP Creates a Google Cloud Storage storage with credentials in environment variables
StorageFactory.Blobs.GoogleCloudStorageFromJsonFile FluentStorage.GCP Creates a Google Cloud Storage storage with credentials in an external JSON
StorageFactory.Blobs.GoogleCloudStorageFromJson FluentStorage.GCP Creates a Google Cloud Storage storage with credentials in a passed JSON string
StorageFactory.Blobs.AzureBlobStorageWithLocalEmulator FluentStorage.Azure.Blobs Creates Azure Blob Storage to connect to a local emulator
StorageFactory.Blobs.AzureBlobStorageWithSharedKey FluentStorage.Azure.Blobs Creates Azure Blob Storage with Shared key authentication
StorageFactory.Blobs.AzureBlobStorageWithAzureAd FluentStorage.Azure.Blobs Creates Azure Blob Storage with Azure ActiveDirectory (AAD) authentication
StorageFactory.Blobs.AzureBlobStorageWithTokenCredential FluentStorage.Azure.Blobs Creates Azure Blob Storage with token credentials
StorageFactory.Blobs.AzureBlobStorageWithSas FluentStorage.Azure.Blobs Creates Azure Blob Storage with SAS identity
StorageFactory.Blobs.AzureBlobStorageWithMsi FluentStorage.Azure.Blobs Creates Azure Blob Storage with Managed Identity
StorageFactory.Blobs.AzureDataLakeGen1StoreByClientSecret FluentStorage.Azure.DataLake Creates Azure Data Lake Gen 1 Store client
StorageFactory.Blobs.AzureDataLakeStorageWithMsi FluentStorage.Azure.Blobs Creates Azure Data Lake Gen 2 Storage with Managed Identity
StorageFactory.Blobs.AzureDataLakeStorageWithSharedKey FluentStorage.Azure.Blobs Creates Azure Data Lake Gen 2 Storage with Shared key authentication
StorageFactory.Blobs.AzureDataLakeStorageWithAzureAd FluentStorage.Azure.Blobs Creates Azure Data Lake Gen 2 Storage with Azure ActiveDirectory (AAD) authentication
StorageFactory.Blobs.AzureFiles FluentStorage.Azure.Files Creates Azure Files storage
StorageFactory.Blobs.AzureKeyVault FluentStorage.Azure.KeyVault Creates Azure Key Vault secrets storage
StorageFactory.Blobs.AzureKeyVaultWithMsi FluentStorage.Azure.KeyVault Creates Azure Key Vault secrets with Managed Identity
StorageFactory.Blobs.AzureServiceFabricReliableStorage FluentStorage.Azure.ServiceFabric Creates Azure Service Fabric storage
StorageFactory.Blobs.Databricks FluentStorage.Databricks Creates Azure Databricks DBFS storage
StorageFactory.Blobs.Ftp FluentStorage.FTP Creates an interface to FTP/FTPS servers
StorageFactory.Blobs.FtpFromFluentFtpClient FluentStorage.FTP Creates an interface to FTP/FTPS servers with the given client instance
StorageFactory.Blobs.Sftp FluentStorage.SFTP Creates an interface to SFTP servers (FTP over SSH)

Connect to message queues

To construct storage classes, you need to use the factory methods.

Factory method Package Purpose
StorageFactory.Messages.MessengerFromConnectionString FluentStorage Creates a message publisher from connection string
StorageFactory.Messages.InMemory FluentStorage Creates a message publisher which holds messages in memory
StorageFactory.Messages.Disk FluentStorage Creates a message publisher that uses local disk directory as a backing store.
StorageFactory.Messages.AwsSQS FluentStorage.AWS Creates Amazon Simple Queue Service publisher.
StorageFactory.Messages.AzureEventHub FluentStorage.Azure.EventHub Create Azure Event Hub messenger by full connection string.
StorageFactory.Messages.AzureStorageQueue FluentStorage.Azure.Queues Creates a message publisher to Azure Storage Queues.
StorageFactory.Messages.AzureServiceBus FluentStorage.Azure.ServiceBus Creates a message publisher ho Azure Service Bus Queue.
StorageFactory.Messages.AzureServiceBusTopicReceiver FluentStorage.Azure.ServiceBus Creates a message reciever from Azure Service Bus Queue.
Clone this wiki locally