Ejemplo n.º 1
0
        public void terminate(int code, string des)
        {
            var term = new termination();

            term.code        = code;
            term.description = des;
            var content = new System.Net.Http.StringContent(term.toString(), Encoding.UTF8, "application/json");

            content.Headers.Add("cookie", this.cookie.ToString());
            client.PostAsync(launchUrl + "launch/" + launchToken + "/terminate", content);
        }
Ejemplo n.º 2
0
 public void terminate(int code, string des)
 {
     var term = new termination();
     term.code = code;
     term.description = des;
     var content = new System.Net.Http.StringContent(term.toString(), Encoding.UTF8, "application/json");
     content.Headers.Add("cookie", this.cookie.ToString());
     client.PostAsync(launchUrl + "launch/" + launchToken + "/terminate", content);
 }