private int HandleSCMOptions(SCMOptions sCmOptions) { SetVerboseLevel(sCmOptions.VerboseLevel); Reporter.ToLog(eLogLevel.INFO, "Running SCM options"); CLISCM cliSCM = new CLISCM(); cliSCM.Download(sCmOptions); return(Environment.ExitCode); }
private async Task <int> HandleSCMOptions(SCMOptions sCmOptions) { return(await Task.Run(() => { SetVerboseLevel(sCmOptions.VerboseLevel); Reporter.ToLog(eLogLevel.INFO, "Running SCM options"); CLISCM cliSCM = new CLISCM(); cliSCM.Download(sCmOptions); return Environment.ExitCode; })); }