C# Класс azurecopy.SkyDriveHandler

Наследование: IBlobHandler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetBaseUrl ( ) : string
GetBlobNameFromUrl ( string url ) : string

Gets blob name from the full url. This is cloud specific.

GetContainerNameFromUrl ( string url ) : string

Gets container name from the full url. This is cloud specific.

ListBlobsInContainer ( string containerName = null, string blobPrefix = null, bool debug = false ) : IEnumerable

Lists all blobs in a container. Can be supplied a blobPrefix which basically acts as virtual directory options. eg, if we have blobs called: "virt1/virt2/myblob" and "virt1/virt2/myblob2" Although the blob names are the complete strings mentioned above, we might like to think that the blobs are just called myblob and myblob2. We can supply a blobPrefix of "virt1/virt2/" which we can *think* of as a directory, but again, its just really a prefix behind the scenes. For other sytems (not Azure) the blobPrefix might be real directories.... will need to investigate

ListContainers ( string root ) : List

List containers/directories off the root. For storage schemes that allow real directories maybe the root will be

MakeContainer ( string containerName ) : void

Make container/directory (depending on platform).

MoveBlob ( string originContainer, string destinationContainer, string startBlobname ) : void

Move blob

OverrideConfiguration ( string>.Dictionary configuration ) : void
ReadBlob ( string containerName, string blobName, string cacheFilePath = "" ) : Blob

Read blob.

SkyDriveHandler ( string url ) : System
WriteBlob ( string containerName, string blobName, Blob blob, int parallelUploadFactor = 1, int chunkSizeInMB = 4 ) : void

Write blob

Приватные методы

Метод Описание
GetDirectoryNameFromUrl ( string url ) : string
GetSkyDriveDirectoryId ( string directoryName ) : string

Описание методов

GetBaseUrl() публичный Метод

public GetBaseUrl ( ) : string
Результат string

GetBlobNameFromUrl() публичный Метод

Gets blob name from the full url. This is cloud specific.
public GetBlobNameFromUrl ( string url ) : string
url string
Результат string

GetContainerNameFromUrl() публичный Метод

Gets container name from the full url. This is cloud specific.
public GetContainerNameFromUrl ( string url ) : string
url string
Результат string

ListBlobsInContainer() публичный Метод

Lists all blobs in a container. Can be supplied a blobPrefix which basically acts as virtual directory options. eg, if we have blobs called: "virt1/virt2/myblob" and "virt1/virt2/myblob2" Although the blob names are the complete strings mentioned above, we might like to think that the blobs are just called myblob and myblob2. We can supply a blobPrefix of "virt1/virt2/" which we can *think* of as a directory, but again, its just really a prefix behind the scenes. For other sytems (not Azure) the blobPrefix might be real directories.... will need to investigate
public ListBlobsInContainer ( string containerName = null, string blobPrefix = null, bool debug = false ) : IEnumerable
containerName string
blobPrefix string
debug bool
Результат IEnumerable

ListContainers() публичный Метод

List containers/directories off the root. For storage schemes that allow real directories maybe the root will be
public ListContainers ( string root ) : List
root string
Результат List

MakeContainer() публичный Метод

Make container/directory (depending on platform).
public MakeContainer ( string containerName ) : void
containerName string
Результат void

MoveBlob() публичный Метод

Move blob
public MoveBlob ( string originContainer, string destinationContainer, string startBlobname ) : void
originContainer string
destinationContainer string
startBlobname string
Результат void

OverrideConfiguration() публичный Метод

public OverrideConfiguration ( string>.Dictionary configuration ) : void
configuration string>.Dictionary
Результат void

ReadBlob() публичный Метод

Read blob.
public ReadBlob ( string containerName, string blobName, string cacheFilePath = "" ) : Blob
containerName string
blobName string
cacheFilePath string
Результат Blob

SkyDriveHandler() публичный Метод

public SkyDriveHandler ( string url ) : System
url string
Результат System

WriteBlob() публичный Метод

Write blob
public WriteBlob ( string containerName, string blobName, Blob blob, int parallelUploadFactor = 1, int chunkSizeInMB = 4 ) : void
containerName string
blobName string
blob Blob
parallelUploadFactor int
chunkSizeInMB int
Результат void