Better way to run WCF Service at specific time

Posted by Learningtorise under WCF on 10/15/2013 | Points: 10 | Views : 8823 | Status : [Member] | Replies : 3
Hi All, Namaskar,

I have hosted my WCF Application, which sends mails to intended recipients, on Server.

Client's Requirement was to send mails on Specific time Every Day, say 12PM And 5PM.

So i created a windows service, where i am calling my hosted WCF service for sending Mails.

And Added a Scheduler Tasks to Run Following Commands to start my Windows Service on said Time:

SC START "MyServiceName"

Everything is working great and as expected!

What i need to know is whether i can run my WCF service from Scheduler Tasks or any other way at Specific Time EveryDay??

P.S.: I wanted you to understand my requirement that's why I explained everything above instead of asking my Query straightaway.

TIA.

http://hashtagakash.wordpress.com/


Responses

Posted by: Bandi on: 10/18/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer
http://stackoverflow.com/questions/6686709/best-method-to-call-wcf-services-at-interval
http://stackoverflow.com/questions/6594626/how-to-make-service-act-dynamically-based-on-service-running-condition/6594925#6594925

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Learningtorise, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Learningtorise on: 10/18/2013 [Member] Starter | Points: 25

Up
0
Down
No, that doesn't seems to answer my Query.

http://hashtagakash.wordpress.com/

Learningtorise, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rama Sagar on: 10/18/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi you can use Quartz Scheduler to run your WCF service in particular time...
Refer http://www.dotnetfunda.com/articles/show/2146/scheduling-a-service-using-quartz

ramasagar

Learningtorise, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response