예제 #1
0
        private string op1(FileHandle op, QiniuCloudEntry entry)
        {
            string url = string.Format("{0}/{1}/{2}",
                                       QiniuHosts.RS_HOST,
                                       OPS [(int)op],
                                       entry.Url.ToBase64URLSafe());

            return(webClient.Get(new Uri(url)));
        }
예제 #2
0
 /// <summary>
 /// Delete the specified entry.
 /// </summary>
 /// <param name="entry">Entry.</param>
 public void Delete(QiniuCloudEntry entry)
 {
     op1(FileHandle.STAT, entry);
 }
예제 #3
0
 public QiniuCloudEntryPair(QiniuCloudEntry first, QiniuCloudEntry second)
 {
     this.first  = first;
     this.second = second;
 }
예제 #4
0
 /// <summary>
 /// Stat the specified entry.
 /// </summary>
 /// <param name="entry">Entry.</param>
 public string Stat(QiniuCloudEntry entry)
 {
     return(op1(FileHandle.STAT, entry));
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Qiniu.QiniuCloudEntryPair"/> class.
 /// </summary>
 /// <param name="bucket1">Bucket1.</param>
 /// <param name="key1">Key1.</param>
 /// <param name="bucket2">Bucket2.</param>
 /// <param name="key2">Key2.</param>
 public QiniuCloudEntryPair(string bucket1, string key1, string bucket2, string key2)
 {
     first  = new QiniuCloudEntry(bucket1, key1);
     second = new QiniuCloudEntry(bucket2, key2);
 }