Catel.Services.SchedulerService.Schedule C# (CSharp) Method

Schedule() public method

Schedules the specified action in an absolute DateTime.
The is null. The is null. The is in the past.
public Schedule ( System.Action action, System.DateTime dateTime ) : void
action System.Action The action.
dateTime System.DateTime The date time.
return void
        public virtual void Schedule(Action action, DateTime dateTime)
        {
            Argument.IsNotNull("action", action);
            Argument.IsNotNull("dateTime", dateTime);

            if (dateTime <= FastDateTime.Now)
            {
                throw new ArgumentOutOfRangeException("dateTime", "The date/time cannot be in the past");
            }

            Schedule(action, dateTime - FastDateTime.Now);
        }
    }

Same methods

SchedulerService::Schedule ( System.Action action, System.TimeSpan timeSpan ) : void
SchedulerService