2010-05-08 03:41:37 +08:00
|
|
|
|
using Microsoft.WindowsAzure;
|
2010-05-12 00:53:30 +08:00
|
|
|
|
using Orchard.Environment.Configuration;
|
2010-04-24 08:39:23 +08:00
|
|
|
|
using Orchard.Storage;
|
|
|
|
|
|
2010-04-27 05:58:29 +08:00
|
|
|
|
namespace Orchard.Azure.Storage {
|
2010-04-24 08:39:23 +08:00
|
|
|
|
|
2010-05-08 03:41:37 +08:00
|
|
|
|
public class AzureBlobStorageProvider : AzureFileSystem, IStorageProvider {
|
2010-04-24 08:39:23 +08:00
|
|
|
|
|
2010-05-12 00:53:30 +08:00
|
|
|
|
public AzureBlobStorageProvider(ShellSettings shellSettings)
|
|
|
|
|
: this(shellSettings, CloudStorageAccount.FromConfigurationSetting("DataConnectionString")) {
|
2010-04-24 08:39:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
2010-05-12 00:53:30 +08:00
|
|
|
|
public AzureBlobStorageProvider(ShellSettings shellSettings, CloudStorageAccount storageAccount) : base("media", shellSettings.Name, false, storageAccount) { }
|
2010-04-24 08:39:23 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2010-05-08 03:41:37 +08:00
|
|
|
|
|
|
|
|
|
|