Esempio n. 1
0
 /// <summary>
 /// Execute the ImageWeb command.
 /// </summary>
 /// <param name="args">The parametres value of the Image Web</param>
 /// <param name="result"> True if we succeed the excute</param>
 /// <returns>string of all the parametrs.</returns>
 public string Execute(string[] args, out bool result)
 {
     this.imageCounter = m_modal.CountImages();
     try
     {
         JObject j = new JObject();
         j["ServiceStatus"] = this.serviceStatus;
         j["ImageCounter"]  = this.imageCounter;
         result             = true;
         string ret = "Web " + j.ToString().Replace(Environment.NewLine, " ");
         return(ret);
     }
     catch (Exception e)
     {
         result = false;
         return(e.ToString());
     }
 }