Payal Nair

Payal Nair

  • NA
  • 79
  • 0

Accessing data in console application run as scheduled task

Jan 23 2018 3:51 PM
Hi,
 
My requirement is to send a mail whenever the status of a set of employees change from "Active ->Inactive" / "Inactive->Active" .
 
I have implemented as a console application which is configured in the windows task scheduler to run every 5 mins. This app calls the web service, checks the status and sends mail. But I need the previous execution employee list in order to check if any change in status has occurred or not with the currently retrieved status. I believe static variables won't be of any use as the application is run during each 5 mints. Please advice.
 
Thanks,
Divya

Answers (1)