public async static Task <SftpTestResult> RunFromConsole(ILogger log, SftpParms sftpParms) { using (var sftpTestLibEntry = new SftpTestLibEntry()) { var result = await sftpTestLibEntry.Run(log, sftpParms); log.LogInformation(result.Report); return(result); } }
public async static Task Run([TimerTrigger("0 */10 * * * *")] TimerInfo myTimer, ILogger log, ExecutionContext context) { log.LogInformation($"The SftpTest Azure Function is beginning at: {DateTime.Now}"); var sftpParms = getSftpParms(context); using (var sftpTestLibEntry = new SftpTestLibEntry()) { var result = await sftpTestLibEntry.Run(log, sftpParms); log.LogInformation(result.Report); } log.LogInformation($"The SftpTest Azure Function is beginning at: {DateTime.Now}"); }