using Microsoft.Azure.WebJobs; using Microsoft.Extensions.Logging; using System; namespace DFDemo.ProfileSync.Function { public static class C_StartSync { [FunctionName("C_StartSync")] public static void Run([TimerTrigger("0 0 */4 * * *")]TimerInfo myTimer, [OrchestrationClient]DurableOrchestrationClient starter, ILogger log) { log.LogInformation($"Profile Sync started at: {DateTime.Now}"); starter.StartNewAsync("O_SyncProfileProperties", null); } } }