The best solution would be to use a Azure Web Job that runs on a time trigger or is hooked to a cron trigger.
Create a console app.
Install the Microsoft.Azure.Webjobs package and Microsoft.Azure.WebJobs.Extensions packages from NuGet.
Add this to your Program.cs
public static void Main()
{
JobHostConfiguration config = new JobHostConfiguration();
config.UseTimers();
JobHost host = new JobHost(config);
host.RunAndBlock();
}
In a Functions.cs class: ( A TimeTrigger that runs every 24 hours )
public class Functions
{
public static void UpdateCurrencyExchange([TimerTrigger("24:00:00")] TimerInfo timerInfo, TextWriter log)
{
//Invoke your method with a Webclient here
}
}
If you need it to run at a certain time, use a cron expression in the trigger:
http://blog.amitapple.com/post/2015/06/scheduling-azure-webjobs/#.WGyYEfkrIuU