Ejemplo n.º 1
0
        public static void CreateTimerJob(SPSite site)
        {
            var timerJob = new WysylkaWiadomosciTJ(site);
            //timerJob.Schedule = new SPMinuteSchedule
            //{
            //    BeginSecond = 0,
            //    EndSecond = 0,
            //    Interval = 15
            //};

            timerJob.Schedule = new SPHourlySchedule
            {
                BeginMinute = 0,
                EndMinute = 5,
            };


            timerJob.Update();
        }
Ejemplo n.º 2
0
        public static void CreateTimerJob(SPSite site)
        {
            var timerJob = new WysylkaWiadomosciTJ(site);

            //timerJob.Schedule = new SPMinuteSchedule
            //{
            //    BeginSecond = 0,
            //    EndSecond = 0,
            //    Interval = 15
            //};

            timerJob.Schedule = new SPHourlySchedule
            {
                BeginMinute = 0,
                EndMinute   = 5,
            };


            timerJob.Update();
        }