C# Class azurecopy.Utils.AzureHelper

显示文件 Open project: kpfaulkner/azurecopy

Private Properties

Property Type Description
AzureHelper System

Public Methods

Method Description
AzureContainerToBasicBlobContainer ( Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer container ) : BasicBlobContainer
GetAccountNameFromUrl ( string blobUrl ) : string
GetBlobFromUrl ( string blobUrl ) : string
GetCloudBlobClient ( string url, bool isSrc, string accountKey = null ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient
GetCloudBlobClient ( string accountName, string accountKey ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient
GetCloudFileClient ( string url, bool isSrc ) : Microsoft.WindowsAzure.Storage.File.CloudFileClient
GetCloudStorageAccount ( string accountKey, string accountName ) : Microsoft.WindowsAzure.Storage.CloudStorageAccount
GetCloudStorageAccount ( string url, string accountKey, string accountName ) : Microsoft.WindowsAzure.Storage.CloudStorageAccount
GetContainerFromUrl ( string blobUrl, bool assumeNoBlob = false ) : string
GetDisplayName ( string fullBlobName ) : string
GetSourceCloudBlobClient ( string url ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient
GetTargetCloudBlobClient ( string url ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient
GetVirtualDirectoryFromUrl ( string blobUrl ) : string
IsDevUrl ( string url ) : bool
ListBlobsInContainer ( string containerUrl ) : IEnumerable
ListBlobsInContainer ( string containerUrl, CopyStatus copyStatusFilter ) : List
MatchFileHandler ( string url ) : bool
MatchHandler ( string url ) : bool

Private Methods

Method Description
AzureHelper ( ) : System

Method Details

AzureContainerToBasicBlobContainer() public static method

public static AzureContainerToBasicBlobContainer ( Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer container ) : BasicBlobContainer
container Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer
return BasicBlobContainer

GetAccountNameFromUrl() public static method

public static GetAccountNameFromUrl ( string blobUrl ) : string
blobUrl string
return string

GetBlobFromUrl() public static method

public static GetBlobFromUrl ( string blobUrl ) : string
blobUrl string
return string

GetCloudBlobClient() public static method

public static GetCloudBlobClient ( string url, bool isSrc, string accountKey = null ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient
url string
isSrc bool
accountKey string
return Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient

GetCloudBlobClient() public static method

public static GetCloudBlobClient ( string accountName, string accountKey ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient
accountName string
accountKey string
return Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient

GetCloudFileClient() public static method

public static GetCloudFileClient ( string url, bool isSrc ) : Microsoft.WindowsAzure.Storage.File.CloudFileClient
url string
isSrc bool
return Microsoft.WindowsAzure.Storage.File.CloudFileClient

GetCloudStorageAccount() public static method

public static GetCloudStorageAccount ( string accountKey, string accountName ) : Microsoft.WindowsAzure.Storage.CloudStorageAccount
accountKey string
accountName string
return Microsoft.WindowsAzure.Storage.CloudStorageAccount

GetCloudStorageAccount() public static method

public static GetCloudStorageAccount ( string url, string accountKey, string accountName ) : Microsoft.WindowsAzure.Storage.CloudStorageAccount
url string
accountKey string
accountName string
return Microsoft.WindowsAzure.Storage.CloudStorageAccount

GetContainerFromUrl() public static method

public static GetContainerFromUrl ( string blobUrl, bool assumeNoBlob = false ) : string
blobUrl string
assumeNoBlob bool
return string

GetDisplayName() public static method

public static GetDisplayName ( string fullBlobName ) : string
fullBlobName string
return string

GetSourceCloudBlobClient() public static method

public static GetSourceCloudBlobClient ( string url ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient
url string
return Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient

GetTargetCloudBlobClient() public static method

public static GetTargetCloudBlobClient ( string url ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient
url string
return Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient

GetVirtualDirectoryFromUrl() public static method

public static GetVirtualDirectoryFromUrl ( string blobUrl ) : string
blobUrl string
return string

IsDevUrl() public static method

public static IsDevUrl ( string url ) : bool
url string
return bool

ListBlobsInContainer() public static method

public static ListBlobsInContainer ( string containerUrl ) : IEnumerable
containerUrl string
return IEnumerable

ListBlobsInContainer() public static method

public static ListBlobsInContainer ( string containerUrl, CopyStatus copyStatusFilter ) : List
containerUrl string
copyStatusFilter CopyStatus
return List

MatchFileHandler() public static method

public static MatchFileHandler ( string url ) : bool
url string
return bool

MatchHandler() public static method

public static MatchHandler ( string url ) : bool
url string
return bool