【发布时间】:2012-05-03 09:22:40
【问题描述】:
我正在使用https://github.com/rackspace/csharp-cloudfiles 构建一个命令行工具来将文件上传到 Rackspace Cloud Files。
问题是我不知道如何跟踪上传进度(似乎没有任何类型的事件或其他东西)。
代码如下:
// 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);
【问题讨论】:
标签: c# .net rackspace-cloud cloudfiles