示例#1
0
 public void CRT(string msg)
 {
     RJM.Add(Hangfire.Common.Job.FromExpression <IDataSourceSyncJobs>(z => z.TraceMeAsync(msg)), Cron.Hourly());
 }
示例#2
0
 public void CreateRecurringTrace(string msg)
 {
     RJM.Add(Hangfire.Common.Job.FromExpression(() => System.Diagnostics.Trace.WriteLine(msg)), Cron.Minutely());
 }