static void Main(string[] args) { // This used to run the service as a console (development phase only) var lastFm = new LastFmData(); lastFm.GetData(); Console.WriteLine("Press Enter to terminate ..."); Console.ReadLine(); }
private void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { lastFm.GetData(); }