C# 클래스 Elastacloud.AzureManagement.Fluent.Commands.Blobs.BlobCommand

Abstract Base class with functions to allow blob handling using the storage services API
상속: ICommand
파일 보기 프로젝트 열기: azurecoder/fluent-management

Private Properties

프로퍼티 타입 설명
PrepareRequest System.Net.HttpWebRequest

공개 메소드들

메소드 설명
CheckStorageAccountExists ( int timeoutInSeconds ) : bool

Checks to see whether a storage account exists based on checking every second the operation will either return a 502 if the DNS cannot resolve or a 400 if it can

Execute ( ) : void

Abstract method used to execute the any command againt blob storage

보호된 메소드들

메소드 설명
BlobCommand ( ) : System
CreateAuthorizationHeader ( String canResource, string options = "", int contentLength ) : string
GetPackageFileBytesAndLength ( string fileName, int &contentLength ) : byte[]

Finds out the length and returns a byte array of the files

SendWebRequest ( string url, string authHeader, byte fileBytes = null, int contentLength ) : void

비공개 메소드들

메소드 설명
PrepareRequest ( string url, string authHeader, byte fileBytes = null, int contentLength ) : HttpWebRequest

Preprares the request for sending and using blob storage

메소드 상세

BlobCommand() 보호된 메소드

protected BlobCommand ( ) : System
리턴 System

CheckStorageAccountExists() 공개 메소드

Checks to see whether a storage account exists based on checking every second the operation will either return a 502 if the DNS cannot resolve or a 400 if it can
public CheckStorageAccountExists ( int timeoutInSeconds ) : bool
timeoutInSeconds int The timeout in seconds to stop the checking
리턴 bool

CreateAuthorizationHeader() 보호된 메소드

protected CreateAuthorizationHeader ( String canResource, string options = "", int contentLength ) : string
canResource String
options string
contentLength int
리턴 string

Execute() 공개 추상적인 메소드

Abstract method used to execute the any command againt blob storage
public abstract Execute ( ) : void
리턴 void

GetPackageFileBytesAndLength() 보호된 메소드

Finds out the length and returns a byte array of the files
protected GetPackageFileBytesAndLength ( string fileName, int &contentLength ) : byte[]
fileName string The filename being used to retrieve the bytes and length
contentLength int The length of the file in bytes
리턴 byte[]

SendWebRequest() 보호된 메소드

protected SendWebRequest ( string url, string authHeader, byte fileBytes = null, int contentLength ) : void
url string
authHeader string
fileBytes byte
contentLength int
리턴 void