Revision 4f6d51d4 trunk/Pithos.Network/ICloudClient.cs
b/trunk/Pithos.Network/ICloudClient.cs | ||
---|---|---|
36 | 36 |
|
37 | 37 |
#region Object operations |
38 | 38 |
Task GetObject(string account, string container, string objectName, string fileName); |
39 |
Task PutObject(string account, string container, string objectName, string fileName, string hash = null); |
|
39 |
Task PutObject(string account, string container, string objectName, string fileName, string hash = null, string contentType = "application/octet-stream");
|
|
40 | 40 |
void DeleteObject(string account, string container, string objectName); |
41 | 41 |
//void DeleteObject(string container, string objectName, string account = null); |
42 | 42 |
void MoveObject(string account, string sourceContainer, string oldObjectName, string targetContainer, string newObjectName); |
... | ... | |
211 | 211 |
return default(Task); |
212 | 212 |
} |
213 | 213 |
|
214 |
public Task PutObject(string account, string container, string objectName, string fileName, string hash = null) |
|
214 |
public Task PutObject(string account, string container, string objectName, string fileName, string hash = null, string contentType = "application/octet-stream")
|
|
215 | 215 |
{ |
216 | 216 |
|
217 | 217 |
Contract.Requires(!String.IsNullOrWhiteSpace(Token)); |
... | ... | |
219 | 219 |
Contract.Requires(!String.IsNullOrWhiteSpace(container)); |
220 | 220 |
Contract.Requires(!String.IsNullOrWhiteSpace(fileName)); |
221 | 221 |
Contract.Requires(!String.IsNullOrWhiteSpace(objectName)); |
222 |
Contract.Requires(!String.IsNullOrWhiteSpace(contentType)); |
|
222 | 223 |
|
223 | 224 |
return default(Task); |
224 | 225 |
} |
Also available in: Unified diff