1
我使用https://github.com/rackspace/csharp-cloudfiles創建了一個命令行工具來將文件上傳到Rackspace Cloud文件。在C#中將文件上傳到Rackspace Cloud文件時跟蹤進度#
事情是,我不知道如何跟蹤上傳進度(似乎沒有任何事件或事情)。
下面的代碼:
// Create credentials, client and connection
var creds = new UserCredentials(username, apiKey);
CF_Client client = new CF_Client();
Connection conn = new CF_Connection(creds, client);
conn.Authenticate();
// Get container and upload file
var container = new CF_Container(conn, client, containerName);
var obj = new CF_Object(conn, container, client, remoteFileName);
obj.WriteFromFile(localFilePath);
謝謝,我會給它一個。 –