mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Moving media, appdata, and vpp services into Orchard.FileSystems namespace
--HG-- branch : dev
This commit is contained in:
@@ -4,7 +4,7 @@ using System.Linq;
|
||||
using Microsoft.WindowsAzure;
|
||||
using Microsoft.WindowsAzure.StorageClient;
|
||||
using System.IO;
|
||||
using Orchard.Storage;
|
||||
using Orchard.FileSystems.Media;
|
||||
|
||||
namespace Orchard.Azure {
|
||||
public class AzureFileSystem {
|
||||
|
@@ -3,8 +3,9 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Orchard.Environment.Configuration;
|
||||
using Orchard.FileSystems.AppData;
|
||||
|
||||
namespace Orchard.Azure.Environment.Configuration {
|
||||
namespace Orchard.Azure.FileSystems.AppData {
|
||||
public class AzureAppDataFolder : IAppDataFolder {
|
||||
|
||||
private readonly AzureFileSystem _fs;
|
||||
@@ -62,4 +63,4 @@ namespace Orchard.Azure.Environment.Configuration {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,9 +1,8 @@
|
||||
using Microsoft.WindowsAzure;
|
||||
using Orchard.Environment.Configuration;
|
||||
using Orchard.Storage;
|
||||
|
||||
namespace Orchard.Azure.Storage {
|
||||
using Orchard.FileSystems.Media;
|
||||
|
||||
namespace Orchard.Azure.FileSystems.Media {
|
||||
public class AzureBlobStorageProvider : AzureFileSystem, IStorageProvider {
|
||||
|
||||
public AzureBlobStorageProvider(ShellSettings shellSettings)
|
||||
@@ -12,6 +11,4 @@ namespace Orchard.Azure.Storage {
|
||||
|
||||
public AzureBlobStorageProvider(ShellSettings shellSettings, CloudStorageAccount storageAccount) : base("media", shellSettings.Name, false, storageAccount) { }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
@@ -14,13 +14,13 @@
|
||||
</component>
|
||||
|
||||
<component instance-scope="single-instance"
|
||||
type="Orchard.Azure.Storage.AzureBlobStorageProvider, Orchard.Azure"
|
||||
service="Orchard.Storage.IStorageProvider">
|
||||
type="Orchard.Azure.FileSystems.Media.AzureBlobStorageProvider, Orchard.Azure"
|
||||
service="Orchard.FileSystems.Media.IStorageProvider">
|
||||
</component>
|
||||
|
||||
<component instance-scope="single-instance"
|
||||
type="Orchard.Azure.Environment.Configuration.AzureAppDataFolder, Orchard.Azure"
|
||||
service="Orchard.Environment.Configuration.IAppDataFolder">
|
||||
type="Orchard.Azure.FileSystems.AppData.AzureAppDataFolder, Orchard.Azure"
|
||||
service="Orchard.FileSystems.AppData.IAppDataFolder">
|
||||
</component>
|
||||
|
||||
|
||||
|
@@ -51,9 +51,9 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CloudBlobContainerExtensions.cs" />
|
||||
<Compile Include="Environment\Configuration\AzureAppDataFolder.cs" />
|
||||
<Compile Include="FileSystems\AppData\AzureAppDataFolder.cs" />
|
||||
<Compile Include="Environment\Configuration\AzureShellSettingsManager.cs" />
|
||||
<Compile Include="Storage\AzureBlobStorageProvider.cs" />
|
||||
<Compile Include="FileSystems\Media\AzureBlobStorageProvider.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="AzureFileSystem.cs" />
|
||||
</ItemGroup>
|
||||
|
Reference in New Issue
Block a user