예제 #1
0
파일: CronJob.cs 프로젝트: arisoyang/ncron
 /// <summary>
 /// This method is invoked before the job is executed and is used to pass context information to the job.
 /// The context gets stored in the <see cref="Context"/> property.
 /// </summary>
 /// <param name="context">Contains information about the context in which the job is executed.</param>
 public void Initialize(CronContext context)
 {
     Context = context;
     Log = context.Log;
 }
예제 #2
0
 /// <summary>
 /// This method is invoked before the job is executed and is used to pass context information to the job.
 /// The context gets stored in the <see cref="Context"/> property.
 /// </summary>
 /// <param name="context">Contains information about the context in which the job is executed.</param>
 public void Initialize(CronContext context)
 {
     Context = context;
     Log     = context.Log;
 }