• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class AzureFolderProvider

Windows Azure Storage Folder Provider.

Inheritance
System.Object
FolderProvider
BaseRemoteStorageProvider
AzureFolderProvider
Inherited Members
BaseRemoteStorageProvider.SupportsMappedPaths
BaseRemoteStorageProvider.SupportsMoveFile
BaseRemoteStorageProvider.SupportsMoveFolder
BaseRemoteStorageProvider.ObjectCacheTimeout
BaseRemoteStorageProvider.ListObjectsCacheTimeout
BaseRemoteStorageProvider.AddFolder(String, FolderMappingInfo)
BaseRemoteStorageProvider.AddFile(IFolderInfo, String, Stream)
BaseRemoteStorageProvider.ClearCache(Int32)
BaseRemoteStorageProvider.CopyFile(String, String, String, FolderMappingInfo)
BaseRemoteStorageProvider.DeleteFile(IFileInfo)
BaseRemoteStorageProvider.DeleteFolder(IFolderInfo)
BaseRemoteStorageProvider.FileExists(IFolderInfo, String)
BaseRemoteStorageProvider.FolderExists(String, FolderMappingInfo)
BaseRemoteStorageProvider.GetFileAttributes(IFileInfo)
BaseRemoteStorageProvider.GetFiles(IFolderInfo)
BaseRemoteStorageProvider.GetFileSize(IFileInfo)
BaseRemoteStorageProvider.GetFileStream(IFileInfo)
BaseRemoteStorageProvider.GetFileStream(IFolderInfo, String)
BaseRemoteStorageProvider.GetLastModificationTime(IFileInfo)
BaseRemoteStorageProvider.GetSubFolders(String, FolderMappingInfo)
BaseRemoteStorageProvider.IsInSync(IFileInfo)
BaseRemoteStorageProvider.MoveFolder(String, String, FolderMappingInfo)
BaseRemoteStorageProvider.RenameFile(IFileInfo, String)
BaseRemoteStorageProvider.RenameFolder(IFolderInfo, String)
BaseRemoteStorageProvider.SetFileAttributes(IFileInfo, FileAttributes)
BaseRemoteStorageProvider.SupportsFileAttributes()
BaseRemoteStorageProvider.UpdateFile(IFileInfo, Stream)
BaseRemoteStorageProvider.GetHashCode(IFileInfo)
BaseRemoteStorageProvider.GetHashCode(IFileInfo, Stream)
BaseRemoteStorageProvider.GetBooleanSetting(FolderMappingInfo, String)
BaseRemoteStorageProvider.GetIntegerSetting(FolderMappingInfo, String, Int32)
BaseRemoteStorageProvider.GetSetting(FolderMappingInfo, String)
BaseRemoteStorageProvider.GetObjectList(FolderMappingInfo, String)
BaseRemoteStorageProvider.GetStorageItem(FolderMappingInfo, String)
FolderProvider.IsStorageSecure
FolderProvider.RequiresNetworkConnectivity
FolderProvider.GetProviderList()
FolderProvider.Instance(String)
FolderProvider.GetFileStream(IFolderInfo, IFileInfo, Int32)
FolderProvider.GetSettingsControlVirtualPath()
FolderProvider.MoveFile(IFileInfo, IFolderInfo)
FolderProvider.GetEncryptedSetting(Hashtable, String)
FolderProvider.EncryptValue(String)
Namespace: DotNetNuke.Providers.FolderProviders.AzureFolderProvider
Assembly: DotNetNuke.Providers.FolderProviders.dll
Syntax
public class AzureFolderProvider : BaseRemoteStorageProvider

Constructors

| Improve this Doc View Source

AzureFolderProvider()

Windows Azure Storage Folder Provider.

Declaration
public AzureFolderProvider()

Properties

| Improve this Doc View Source

FileNotFoundMessage

Windows Azure Storage Folder Provider.

Declaration
protected override string FileNotFoundMessage { get; }
Property Value
Type Description
System.String
Overrides
BaseRemoteStorageProvider.FileNotFoundMessage
| Improve this Doc View Source

ListObjectsCacheKey

Windows Azure Storage Folder Provider.

Declaration
protected override string ListObjectsCacheKey { get; }
Property Value
Type Description
System.String
Overrides
BaseRemoteStorageProvider.ListObjectsCacheKey
| Improve this Doc View Source

ObjectCacheKey

Windows Azure Storage Folder Provider.

Declaration
protected override string ObjectCacheKey { get; }
Property Value
Type Description
System.String
Overrides
BaseRemoteStorageProvider.ObjectCacheKey

Methods

| Improve this Doc View Source

AddFolder(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
FolderProvider.AddFolder(String, FolderMappingInfo, String)
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.

| Improve this Doc View Source

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
BaseRemoteStorageProvider.CopyFileInternal(FolderMappingInfo, String, String)
| Improve this Doc View Source

DeleteFileInternal(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
BaseRemoteStorageProvider.DeleteFileInternal(FolderMappingInfo, String)
| Improve this Doc View Source

DeleteFolderInternal(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
BaseRemoteStorageProvider.DeleteFolderInternal(FolderMappingInfo, IFolderInfo)
| Improve this Doc View Source

GetAllContainers(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>
| Improve this Doc View Source

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
BaseRemoteStorageProvider.GetFileStreamInternal(FolderMappingInfo, String)
| Improve this Doc View Source

GetFileUrl(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
FolderProvider.GetFileUrl(IFileInfo)
| Improve this Doc View Source

GetFolderProviderIconPath()

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
FolderProvider.GetFolderProviderIconPath()
| Improve this Doc View Source

GetObjectList(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
BaseRemoteStorageProvider.GetObjectList(FolderMappingInfo)
| Improve this Doc View Source

MoveFileInternal(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
BaseRemoteStorageProvider.MoveFileInternal(FolderMappingInfo, String, String)
| Improve this Doc View Source

MoveFolderInternal(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
BaseRemoteStorageProvider.MoveFolderInternal(FolderMappingInfo, String, String)
| Improve this Doc View Source

UpdateFile(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
BaseRemoteStorageProvider.UpdateFile(IFolderInfo, String, Stream)
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.

| Improve this Doc View Source

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
Overrides
BaseRemoteStorageProvider.UpdateFileInternal(Stream, FolderMappingInfo, String)

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS