Пример #1
0
 public void TestGetBucketLocation()
 {
     if (init())
     {
         GetBucketLocationResult bucketLocation = ks3Client.getBucketLocation(bucketName);
         Assert.IsNotNull(bucketLocation);
     }
 }
Пример #2
0
        private static bool getBucketLocation()
        {
            try
            {
                Console.WriteLine("--- getBucketLocation: ---");
                Console.WriteLine("Bucket Name: " + bucketName);

                GetBucketLocationResult bucketLocation = ks3Client.getBucketLocation(bucketName);

                Console.WriteLine("Success.");
                Console.WriteLine("----------------------\n");
            }
            catch (System.Exception e)
            {
                Console.WriteLine("getBucketLocation Fail! " + e.ToString());
                return(false);
            }
            return(true);
        }