コード例 #1
0
ファイル: LaunchAPI.cs プロジェクト: pawel-m543/xapi-launch
        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);
        }
コード例 #2
0
ファイル: LaunchAPI.cs プロジェクト: adlnet/xapi-launch
 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);
 }