Exemple #1
0
        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);
            }
        }
Exemple #2
0
        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}");
        }