示例#1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="queueName"></param>
 /// <param name="client"></param>
 internal Queue(string queueName, CMQClient client)
 {
     this.queueName = queueName;
     this.client    = client;
 }
示例#2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="secretId">密钥Id</param>
 /// <param name="secretKey">密钥Key</param>
 /// <param name="endpoint">请求域名,例如:北京访问点->http://cmq-queue-bj.api.tencentyun.com</param>
 /// <param name="path">例如:/v2/index.php</param>
 /// <param name="method">POST/GET,默认为POST</param>
 public Account(string secretId, string secretKey, string endpoint = "http://cmq-queue-bj.api.tencentyun.com", string path = "/v2/index.php", string method = "POST")
 {
     this.client = new CMQClient(endpoint, path, secretId, secretKey, method);
 }