Пример #1
0
 //批量操作
 public static void BatchStat(string bucket, string[] keys)
 {
     RSClient client = new RSClient();
     List<EntryPath> EntryPaths = new List<EntryPath>();
     foreach (string key in keys)
     {
         Console.WriteLine("\n===> Stat {0}:{1}", bucket, key);
         EntryPaths.Add(new EntryPath(bucket, key));
     }
     client.BatchStat(EntryPaths.ToArray());
 }
Пример #2
0
 public void BatchStatTest()
 {
     RSClient target = new RSClient(); // TODO: 初始化为适当的值
     EntryPath[] keys = new EntryPath[2]; // TODO: 初始化为适当的值
     keys[0] = new EntryPath(Bucket, tmpKeys[0]);
     keys[1] = new EntryPath(Bucket, tmpKeys[1]);//error params
     List<BatchRetItem> actual;
     actual = target.BatchStat(keys);
     Assert.IsTrue(actual.Count == 2, "BatchStatTest Failure");
 }