Revision 283809f3 trunk/Pithos.Interfaces/ICloudClient.cs
b/trunk/Pithos.Interfaces/ICloudClient.cs | ||
---|---|---|
30 | 30 |
void CreateContainer(string container); |
31 | 31 |
void DeleteContainer(string container); |
32 | 32 |
|
33 |
Stream GetObject(string container, string objectName);
|
|
33 |
Task GetObject(string container, string objectName, string fileName);
|
|
34 | 34 |
Task PutObject(string container, string objectName, string fileName, string hash = null); |
35 | 35 |
void DeleteObject(string container, string objectName); |
36 | 36 |
void MoveObject(string container, string oldObjectName, string newObjectName); |
... | ... | |
127 | 127 |
Contract.Requires(!String.IsNullOrWhiteSpace(container)); |
128 | 128 |
} |
129 | 129 |
|
130 |
public Stream GetObject(string container, string objectName)
|
|
130 |
public Task GetObject(string container, string objectName, string fileName)
|
|
131 | 131 |
{ |
132 | 132 |
Contract.Requires(!String.IsNullOrWhiteSpace(Token)); |
133 | 133 |
Contract.Requires(StorageUrl!=null); |
134 | 134 |
Contract.Requires(!String.IsNullOrWhiteSpace(container)); |
135 | 135 |
Contract.Requires(!String.IsNullOrWhiteSpace(objectName)); |
136 | 136 |
|
137 |
return default(Stream);
|
|
137 |
return default(Task);
|
|
138 | 138 |
} |
139 | 139 |
|
140 | 140 |
public Task PutObject(string container, string objectName, string fileName, string hash = null) |
... | ... | |
218 | 218 |
set { _tags = value; } |
219 | 219 |
} |
220 | 220 |
|
221 |
public Stream Stream { get; set; } |
|
222 |
|
|
221 | 223 |
public static ObjectInfo Empty=new ObjectInfo {Name=String.Empty,Hash=String.Empty,Bytes=0,Content_Type=String.Empty,Last_Modified=DateTime.MinValue}; |
222 | 224 |
} |
223 | 225 |
} |
Also available in: Unified diff