/// <summary> /// Setup this task. /// </summary> /// <param name="name">The name of this task.</param> public void Init(String name) { if (this.cloud.Session == null) { throw new EncogCloudError( "Session must be established before a task is created."); } CloudRequest request = new CloudRequest(); String url = this.cloud.Session; url += "task/create"; IDictionary <String, String> args = new Dictionary <String, String>(); args["name"] = name; args["status"] = "Starting..."; request.PerformURLPOST(false, url, args); this.taskURL = this.cloud.Session + "task/" + request.GetResponseProperty("id") + "/"; }
/// <summary> /// Setup this task. /// </summary> /// <param name="name">The name of this task.</param> public void Init(String name) { if (this.cloud.Session == null) { throw new EncogCloudError( "Session must be established before a task is created."); } CloudRequest request = new CloudRequest(); String url = this.cloud.Session; url += "task/create"; IDictionary<String, String> args = new Dictionary<String, String>(); args["name"] = name; args["status"] = "Starting..."; request.PerformURLPOST(false, url, args); this.taskURL = this.cloud.Session + "task/" + request.GetResponseProperty("id") + "/"; }