i have a web service (amsx) in which i want to invoke a method on daily basis, how to do it ? also please no third party dll’s
public List<myClass> Mymethod(){
List<myClass> Collect = new List<myClass>();
if (list.Count == 0)
{
myfunction(); // my function must be invoked every day at 7 to update list
Collection = list;
return Collect;
}
else
{
Collection = list;
return Collect;
}
}
Take a look at MSDN article – Combine Web and Windows Services to Run Your ASP.NET Code at Scheduled Intervals and blog post – Easy Background Tasks in ASP.NET by Jeff Atwood.