Candor.Tasks.RepeatingWorkerRoleTask.OnWaitingPeriodElapsedAdvanced C# (CSharp) Method

OnWaitingPeriodElapsedAdvanced() public method

Code to be executed everytime the waiting period elapses, but with controls to alter the flow of subsequent iterations. This gives more fine grained control to derived classes to follow different workloads on a custom schedule.
If this method is overridden, then the other OnWaitingPeriodElapsed method will never be called by this base class.
public OnWaitingPeriodElapsedAdvanced ( ) : IterationResult
return IterationResult
        public virtual IterationResult OnWaitingPeriodElapsedAdvanced()
        {
            #pragma warning disable 612
            OnWaitingPeriodElapsed();
            #pragma warning restore 612
            return new IterationResult {NextWaitingPeriodSeconds = 0.0};
        }