public static void SaveImage() { if (!string.IsNullOrEmpty(Steamer.url)) { DateTime date = DateTime.Now; string filePath2 = ""; filePath2 = ((!string.IsNullOrEmpty(Steamer.FileDir)) ? (Steamer.FileDir + "//" + date.ToString("yyyyMMddHHmmss") + ".jpg") : (date.ToString("yyyyMMddHHmmss") + ".jpg")); Steamer.DecodeAllFramesToImages(Steamer.url, filePath2); } }
public void Execute(IJobExecutionContext context) { Steamer.SaveImage(); }