/// <summary> /// Gets the config data and returns it to the caller. /// </summary> /// <param name="args">not used in this command.</param> /// <param name="result">is set to true when command execution is finished.</param> /// <returns>JSON formatted config data.</returns> string ICommand.Execute(string[] args, out bool result) { string out_dir = ConfigurationManager.AppSettings["OutputDir"]; string src_name = ConfigurationManager.AppSettings["SourceName"]; string log_name = ConfigurationManager.AppSettings["LogName"]; string thumb_size = ConfigurationManager.AppSettings["ThumbnailSize"]; result = true; return(CommandRecievedEventArgs.ConfigToJSON(out_dir, src_name, log_name, thumb_size, ActiveHandelers)); }