C# Класс Akamai.NetStorage.NetStorage

The Netstorage class is the preferred interface for calling libraries indending to leverage the Netstorage API. All of the available actions are innumerated in this library and are responsible for the correct business logic to assemble the request to the API. Some early safetys are added in this library to limit errors. TODO: Add "LIST" support for ObjectStore TODO: Detect FileStore v. ObjectStore TODO: Extract xml response from various requests into standard object representation Author: [email protected] (Colin Bendell)
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DU ( string path, string format = "xml" ) : Stream
Delete ( string path ) : bool
Dir ( string path, string format = "xml" ) : Stream
Download ( string path ) : Stream
MTime ( string path, System.DateTime mTime = null ) : bool
MkDir ( string path ) : bool
NetStorage ( string hostname, string username, string key, bool useSSL = false ) : System
QuickDelete ( string path ) : bool
Rename ( string path, string original ) : bool
RmDir ( string path ) : bool
Stat ( string path, string format = "xml" ) : Stream
Symlink ( string path, string target ) : bool
Upload ( string path, FileInfo srcFile, bool indexZip = null ) : bool
Upload ( string path, Stream uploadFileStream, System.DateTime mTime = null, long size = null, byte md5Checksum = null, byte sha1Checksum = null, byte sha256Checksum = null, bool indexZip = null ) : bool

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

Метод Описание
execute ( string method, string path, Akamai.Netstorage.APIParams acsParams, Stream uploadStream = null ) : Stream
getNetStorageUri ( string path ) : Uri

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

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

public DU ( string path, string format = "xml" ) : Stream
path string
format string
Результат Stream

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

public Delete ( string path ) : bool
path string
Результат bool

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

public Dir ( string path, string format = "xml" ) : Stream
path string
format string
Результат Stream

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

public Download ( string path ) : Stream
path string
Результат Stream

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

public MTime ( string path, System.DateTime mTime = null ) : bool
path string
mTime System.DateTime
Результат bool

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

public MkDir ( string path ) : bool
path string
Результат bool

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

public NetStorage ( string hostname, string username, string key, bool useSSL = false ) : System
hostname string
username string
key string
useSSL bool
Результат System

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

public QuickDelete ( string path ) : bool
path string
Результат bool

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

public Rename ( string path, string original ) : bool
path string
original string
Результат bool

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

public RmDir ( string path ) : bool
path string
Результат bool

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

public Stat ( string path, string format = "xml" ) : Stream
path string
format string
Результат Stream

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

public Symlink ( string path, string target ) : bool
path string
target string
Результат bool

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

public Upload ( string path, FileInfo srcFile, bool indexZip = null ) : bool
path string
srcFile System.IO.FileInfo
indexZip bool
Результат bool

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

public Upload ( string path, Stream uploadFileStream, System.DateTime mTime = null, long size = null, byte md5Checksum = null, byte sha1Checksum = null, byte sha256Checksum = null, bool indexZip = null ) : bool
path string
uploadFileStream Stream
mTime System.DateTime
size long
md5Checksum byte
sha1Checksum byte
sha256Checksum byte
indexZip bool
Результат bool