There is a service FREE called A Trigger, where you register and can schedule calls to a Webservice. You can schedule directly through the control panel of your own website or use a library that gives you the same features programmatically. You can, by code, schedule, pause and cancel call schedules to your web service. Here’s an example of how to schedule via C code#:
Download the library via nuget:
Install-Package ATrigger
Configure the routine call:
using ATriggerLib;
....
ATrigger.Initialize("YOUR_APIKey", "YOUR_APISecret"); // obtenha a APIKEY e o APISecret se cadastrando no site
// crie um dicionário com tags que serão usadas para identificar o seu serviço,
Dictionary<string, string> tags = new Dictionary<string, string>();
tags.Add("type", "teste");
// configura a chamada da rotina uma vez ao dia
ATrigger.Client.doCreate(TimeQuantity.Day(), "1", "http://www.examplo.com.br/rotina?algumacoisa", tags);
If you want to stop scheduling the call, use:
ATrigger.Client.doDelete(tags);
Or to only pause/resume scheduling:
// pausar
ATrigger.Client.doPause(tags);
// retomar
ATrigger.Client.doResume(tags);
Read more here.
You mean the method has to be called daily without user interaction?
– Marcus Vinicius
Where the app will stay?
– Leonel Sanches da Silva
That @Marcusvinicius.
– Kleber Fabreto
It is currently on the site @Ciganomorrisonmendez , but I already got a server to host the application.
– Kleber Fabreto