コード例 #1
0
ファイル: UnitTestKs3.cs プロジェクト: jflzbest/C-
 public void TestGetBucketLogging()
 {
     if (init())
     {
         GetBucketLoggingResult bucketlogging = ks3Client.getBucketLogging(bucketName);
         Assert.IsNotNull(bucketlogging);
     }
 }
コード例 #2
0
ファイル: KS3Sample.cs プロジェクト: elvismile/ks3sdk-csharp
        private static bool getBucketLogging()
        {
            try
            {
                Console.WriteLine("--- getBucketLogging: ---");
                Console.WriteLine("Bucket Name: " + bucketName);

                GetBucketLoggingResult bucketlogging = ks3Client.getBucketLogging(bucketName);

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