Encog.Cloud.CloudRequest.GetResponseProperty C# (CSharp) Method

GetResponseProperty() public method

Get a response property.
public GetResponseProperty ( String key ) : String
key String The key.
return String
        public String GetResponseProperty(String key)
        {
            if (this.responseProperties.ContainsKey(key))
                return this.responseProperties[key];
            else
                return null;
        }

Usage Example

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") + "/";
        }
All Usage Examples Of Encog.Cloud.CloudRequest::GetResponseProperty