Storage Providers are specified using the standard <connectionStrings/> .NET configuration section.
Hence you can easily encrypt sensitive information along with your other ADO.NET settings.

Windows Azure

format of connection strings for the Azure provider.
<configuration>
  <connectionStrings>
    <add name="Azure" provider="System.StorageModel.AzureProvider, Cloud4Net.Azure" connectionString="AccountName=XX;AccountKey=YY"/>
  </connectionStrings>
</configuration>

Setting Requirement Value
AccountName Required, string The name of your Azure storage account, e.g. myaccount if your blob endpoint is http://myaccount.blob.core.windows.net/
AccountKey Required, base-64 The Primary or Secondary Access Key as shown by the Azure portal
DefaultEndpointsProtocol Optional, http or https HTTP communication protocol to use

AWS

format of connection strings for the AWS provider.
<configuration>
  <connectionStrings>
    <add name="AWS" provider="System.StorageModel.AWSProvider, Cloud4Net.AWS" connectionString="AWSAccessKeyId=XX;SecretAccessKey=YY"/>
  </connectionStrings>
</configuration>

Setting Requirement Value
AWSAccessKeyId Required, string The name of your AWS S3 account, e.g. myaccount if your blob endpoint is http://myaccount.s3.amazonaws.com/
SecretAccessKey Required, base-64 The Secret Access Key as shown by the AWS portal
ServiceURL Optional, uri or host name An alternative S3 host if you want to route S3 requests
ProxyURL Optional, uri Uri of an HTTP proxy for S3 requests
UserAgent Optional, user-agent An alternative user-agent sent for each S3 request
MaxErrorRetry Optional, int maximum number or retries in case of network error
Region String, eu or us default AWS region for creating S3 Buckets (e.g. Blob Containers)

NTFS

format of connection strings for the NTFS provider.
<configuration>
  <connectionStrings>
    <add name="FileSystem" provider="System.StorageModel.FileSystemProvider, Cloud4Net.FileSystem" connectionString="BlobPath=YY"/>
  </connectionStrings>
</configuration>

Setting Requirement Value
BlobPath Optional, directory path The relative or absolute path to the root directory of the blobs containers

Cache

format of connection strings for the Cache provider.
<configuration>
  <connectionStrings>
    <add name="Cache" provider="System.StorageModel.AspNetCacheProvider, Cloud4Net.Caching" connectionString="ChainProvider=YY"/>
  </connectionStrings>
</configuration>

Setting Requirement Value
ChainProvider Required, provider name Name of another blob provider to push/pull data from/to the cache

Last edited Dec 5, 2009 at 9:50 PM by JazBee, version 2

Comments

No comments yet.