GetResponseProperty() public method

Get a response property.
public GetResponseProperty ( String key ) : String
key String The key.
return String
Ejemplo n.º 1
0
        /// <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") + "/";
        }
Ejemplo n.º 2
0
        /// <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") + "/";
        }