Moving media, appdata, and vpp services into Orchard.FileSystems namespace

--HG--
branch : dev
This commit is contained in:
Louis DeJardin
2010-05-16 13:35:35 -07:00
parent d46d94f1ee
commit 04a53cb2d1
34 changed files with 116 additions and 93 deletions

View File

@@ -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 {

View File

@@ -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();
}
}
}
}

View File

@@ -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) { }
}
}
}

View File

@@ -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>

View File

@@ -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>