private static ITaskSeriesTimer StartParameterLogTimer(IRecurrentCommand updateCommand, IWebJobsExceptionHandler exceptionHandler) { if (updateCommand == null) { return(null); } TimeSpan initialDelay = FunctionParameterLogIntervals.InitialDelay; TimeSpan refreshRate = FunctionParameterLogIntervals.RefreshRate; ITaskSeriesTimer timer = FixedDelayStrategy.CreateTimer(updateCommand, initialDelay, refreshRate, exceptionHandler); timer.Start(); return(timer); }
private static ITaskSeriesTimer StartOutputTimer(IRecurrentCommand updateCommand, IBackgroundExceptionDispatcher backgroundExceptionDispatcher) { if (updateCommand == null) { return(null); } TimeSpan initialDelay = FunctionOutputIntervals.InitialDelay; TimeSpan refreshRate = FunctionOutputIntervals.RefreshRate; ITaskSeriesTimer timer = FixedDelayStrategy.CreateTimer(updateCommand, initialDelay, refreshRate, backgroundExceptionDispatcher); timer.Start(); return(timer); }