예제 #1
0
파일: Demo.cs 프로젝트: xushiwei/csharp-sdk
        public static void Main()
        {
            Config.ACCESS_KEY = "<Please apply your access key>";
            Config.SECRET_KEY = "<Dont send your secret key to anyone>";

            bucketName = "csharpbucket";
            DEMO_DOMAIN = "csharpbucket.dn.qbox.me";
            localFile = "Resource/gogopher.jpg";
            key = "gogopher.jpg";

            conn = new DigestAuthClient();
            rs = new RSService(conn, bucketName);
            imageOp = new ImageOp(conn);

            MkBucket();
            RSClientPutFile();
            Get();
            Stat();
            Publish();
            UnPublish();
            Delete();
            Drop();

            MkBucket();
            RSPutFile();
            Publish();
            ImageOps();

            Console.ReadLine();
        }
예제 #2
0
 public RSService(Client conn, string bucketName)
 {
     Conn = conn;
     BucketName = bucketName;
 }
예제 #3
0
 public ImageOp(Client conn)
 {
     Conn = conn;
 }