Beispiel #1
0
        public static Schedule ScheduleTask(this ICakeContext context, string target)
        {
            context.Log.Information("Scheduling task '{0}'.", target);

            TaskRegistry instance = context.GetContainer().GetInstance <TaskRegistry>();

            return(instance.Schedule(target));
        }
Beispiel #2
0
        public static void StartSchedules(this ICakeContext context)
        {
            TaskRegistry instance = context.GetContainer().GetInstance <TaskRegistry>();

            TaskManager.Initialize(instance);

            context.Log.Information("Scheduled tasks started.");
        }