Exemple #1
0
		// Implementation of abstract method (AbsractWsClient.GetStatus()).
		/// <summary>Get the job status</summary>
		/// <param name="jobId">Job identifier to get the status of.</param>
		/// <returns>A string describing the status</returns>
		public override string GetStatus(string jobId)
		{
			PrintDebugMessage("GetStatus", "Begin", 1);
			string status = "PENDING";
			this.ServiceProxyConnect(); // Ensure we have a service proxy
			status = SrvProxy.getStatus(jobId);
			PrintDebugMessage("GetStatus", "status: " + status, 2);
			PrintDebugMessage("GetStatus", "End", 1);
			return status;
		}
        // Implementation of abstract method (AbsractWsClient.GetStatus()).
        /// <summary>Get the job status</summary>
        /// <param name="jobId">Job identifier to get the status of.</param>
        /// <returns>A string describing the status</returns>
        public override string GetStatus(string jobId)
        {
            PrintDebugMessage("GetStatus", "Begin", 1);
            if (jobId == null || jobId.Length < 1)
            {
                throw new ClientException("A job identifier is required to get job status.");
            }
            string status = "PENDING";

            this.ServiceProxyConnect();             // Ensure we have a service proxy
            status = SrvProxy.getStatus(jobId);
            PrintDebugMessage("GetStatus", "status: " + status, 2);
            PrintDebugMessage("GetStatus", "End", 1);
            return(status);
        }