.net - How can I run some function every night using quartz.net scheduler in C# -


i developing functionality using c# of quartz.net. task read data database , log data text file or send mail. have written code required insert text file struggling run function every night automated. scheduler having features or properties given bellow

  • should wcf service.
  • hosted on multiple server on multiple location.
  • execute once though scheduler service running on multiple server particular time.
  • history can maintained through kind of database.
  • can execute kind of job .exe file, image file, particular task, kind of command, sql queries, etc.
  • i'm trying work out if possible use quartz scheduler across multiple servers, pointing @ same database.
  • also main motivation fail-over mechanism, spread load.

can please me code how call function @ specific time using quartz.net.

below structure of file read function. task call function c# code @ particular time of day.

public void getgreeting() {     const string path = @"e:\hello.txt";     textwriter tsw = !file.exists(path) ? new streamwriter(path, true) : file.appendtext(path);     //writing text file.     tsw.writeline("log inserted @ : {0}", datetime.now); } 

thanks in advance help


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -