WCF service calling itself every X minutes RRS feed

  • Question

  • hi

    i have a website and a wcf service on it

    i want when publish the web site on iis , my wcf run every x minuts

    please help me


    Friday, March 7, 2014 6:15 PM


  • Hi,

    From your description, I think you may need a timer that will be invoked after a certian amount of time. And this similar thread has told a solution as following:

    public class WCFService : System.Timers.Timer, IWCFService
            public WCFService()
                base.Interval = 30000;
                this.Enabled = true;
          this.Elapsed += new 
            void WCFService_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
               //Do working 

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, March 10, 2014 7:20 AM