Class AzureFolderProvider
Windows Azure Storage Folder Provider.
Inherited Members
Namespace: DotNetNuke.Providers.FolderProviders.AzureFolderProvider
Assembly: DotNetNuke.Providers.FolderProviders.dll
Syntax
public class AzureFolderProvider : BaseRemoteStorageProvider
Constructors
| Improve this Doc View SourceAzureFolderProvider()
Windows Azure Storage Folder Provider.
Declaration
public AzureFolderProvider()
Properties
| Improve this Doc View SourceFileNotFoundMessage
Windows Azure Storage Folder Provider.
Declaration
protected override string FileNotFoundMessage { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceListObjectsCacheKey
Windows Azure Storage Folder Provider.
Declaration
protected override string ListObjectsCacheKey { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceObjectCacheKey
Windows Azure Storage Folder Provider.
Declaration
protected override string ObjectCacheKey { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
| Improve this Doc View SourceAddFolder(String, FolderMappingInfo, String)
Windows Azure Storage Folder Provider.
Declaration
public override void AddFolder(string folderPath, FolderMappingInfo folderMapping, string mappedPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | folderPath | |
FolderMappingInfo | folderMapping | |
System.String | mappedPath |
Overrides
Remarks
Azure Storage doesn't support folders, so we create a file in order for the folder to not be deleted during future synchronizations. The file has an extension not allowed by host. This way the file won't be added during synchronizations.
CopyFileInternal(FolderMappingInfo, String, String)
Windows Azure Storage Folder Provider.
Declaration
protected override void CopyFileInternal(FolderMappingInfo folderMapping, string sourceUri, string newUri)
Parameters
Type | Name | Description |
---|---|---|
FolderMappingInfo | folderMapping | |
System.String | sourceUri | |
System.String | newUri |
Overrides
| Improve this Doc View SourceDeleteFileInternal(FolderMappingInfo, String)
Windows Azure Storage Folder Provider.
Declaration
protected override void DeleteFileInternal(FolderMappingInfo folderMapping, string uri)
Parameters
Type | Name | Description |
---|---|---|
FolderMappingInfo | folderMapping | |
System.String | uri |
Overrides
| Improve this Doc View SourceDeleteFolderInternal(FolderMappingInfo, IFolderInfo)
Windows Azure Storage Folder Provider.
Declaration
protected override void DeleteFolderInternal(FolderMappingInfo folderMapping, IFolderInfo folder)
Parameters
Type | Name | Description |
---|---|---|
FolderMappingInfo | folderMapping | |
IFolderInfo | folder |
Overrides
| Improve this Doc View SourceGetAllContainers(FolderMappingInfo)
Windows Azure Storage Folder Provider.
Declaration
public List<string> GetAllContainers(FolderMappingInfo folderMapping)
Parameters
Type | Name | Description |
---|---|---|
FolderMappingInfo | folderMapping |
Returns
Type | Description |
---|---|
List<System.String> |
GetFileStreamInternal(FolderMappingInfo, String)
Windows Azure Storage Folder Provider.
Declaration
protected override Stream GetFileStreamInternal(FolderMappingInfo folderMapping, string uri)
Parameters
Type | Name | Description |
---|---|---|
FolderMappingInfo | folderMapping | |
System.String | uri |
Returns
Type | Description |
---|---|
Stream |
Overrides
| Improve this Doc View SourceGetFileUrl(IFileInfo)
Gets the direct URL to the file.
Declaration
public override string GetFileUrl(IFileInfo file)
Parameters
Type | Name | Description |
---|---|---|
IFileInfo | file |
Returns
Type | Description |
---|---|
System.String | The URL. |
Overrides
| Improve this Doc View SourceGetFolderProviderIconPath()
Gets the URL of the image to display in FileManager tree.
Declaration
public override string GetFolderProviderIconPath()
Returns
Type | Description |
---|---|
System.String | The image URL. |
Overrides
| Improve this Doc View SourceGetObjectList(FolderMappingInfo)
Windows Azure Storage Folder Provider.
Declaration
protected override IList<IRemoteStorageItem> GetObjectList(FolderMappingInfo folderMapping)
Parameters
Type | Name | Description |
---|---|---|
FolderMappingInfo | folderMapping |
Returns
Type | Description |
---|---|
IList<IRemoteStorageItem> |
Overrides
| Improve this Doc View SourceMoveFileInternal(FolderMappingInfo, String, String)
Windows Azure Storage Folder Provider.
Declaration
protected override void MoveFileInternal(FolderMappingInfo folderMapping, string sourceUri, string newUri)
Parameters
Type | Name | Description |
---|---|---|
FolderMappingInfo | folderMapping | |
System.String | sourceUri | |
System.String | newUri |
Overrides
| Improve this Doc View SourceMoveFolderInternal(FolderMappingInfo, String, String)
Windows Azure Storage Folder Provider.
Declaration
protected override void MoveFolderInternal(FolderMappingInfo folderMapping, string sourceUri, string newUri)
Parameters
Type | Name | Description |
---|---|---|
FolderMappingInfo | folderMapping | |
System.String | sourceUri | |
System.String | newUri |
Overrides
| Improve this Doc View SourceUpdateFile(IFolderInfo, String, Stream)
Updates a file in Azure folder provider.
Declaration
public override void UpdateFile(IFolderInfo folder, string fileName, Stream content)
Parameters
Type | Name | Description |
---|---|---|
IFolderInfo | folder | |
System.String | fileName | |
Stream | content |
Overrides
Remarks
Azure is case sensitive. If you update dnninternals.pdf with DNNINTERNALS.pdf, to DNN it's the same so it just re-uploads it, causing both files to exist in Azure. This azure specific method deletes the old existing duplicate that only differs in case as part of the update.
UpdateFileInternal(Stream, FolderMappingInfo, String)
Windows Azure Storage Folder Provider.
Declaration
protected override void UpdateFileInternal(Stream stream, FolderMappingInfo folderMapping, string uri)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | |
FolderMappingInfo | folderMapping | |
System.String | uri |