/// <summary> /// Run /// </summary> public bool Run(ICommandProgram commandProgram, string[] args) { try { if (commandProgram != null) { if (!commandProgram.Setup(args)) { return(false); } if (!commandProgram.Initialize(args)) { return(false); } if (!commandProgram.Run(args)) { return(false); } } } catch (Exception fallBackException) { Energy.Core.Log.Default.Write(fallBackException); throw; } return(true); }