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(); }
public RSService(Client conn, string bucketName) { Conn = conn; BucketName = bucketName; }
public ImageOp(Client conn) { Conn = conn; }