Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
MySchedular.ServiceScheduler.Scheduler sch = new MySchedular.ServiceScheduler.Scheduler("MySchedular");
            sch.SchedulerFired += new EventHandler(ServiceMethod);
            sch.ScheduleDaily("10:00 AM")


What I have tried:

This functions runs daily at 10 AM which sends an email. but this function is running multiple times. like I get mail at 10 AM and then suddenly another mail comes at 10:05 AM. I'm not able to figure out what to do. please help.
Posted
Comments
F-ES Sitecore 19-Sep-18 5:02am    
We've got no context about where that code is, how it is running, where is the service involved? What is "MySchedular"?
Member 10549697 21-Sep-18 23:50pm    
Sir, MySchedular is dll which gives the scheduled time (daily, weekly,monthly). I checked that code but there is nothing to concern. but is there any case where it happens like this?. If Service Scheduler doesn't work properly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900