コード例 #1
0
 public static void AssignQuartzTrigger(this CronTriggerImpl cronTrigger, IXpandCronTrigger trigger) {
     cronTrigger.MisfireInstruction = (int)trigger.MisfireInstruction;
     cronTrigger.CronExpressionString = trigger.CronExpression;
     // http://devexpress.com/Support/Center/p/S133718.aspx?searchtext=timezoneid+number
     // Fetches the Windows name of the specified Scheduler time zone from the registry.
     String timeZoneKey = RegistryTimeZoneProvider.GetRegistryKeyNameByTimeZoneId(trigger.TimeZone);
     cronTrigger.TimeZone = TimeZoneInfo.FindSystemTimeZoneById(timeZoneKey);
 }
コード例 #2
0
ファイル: TriggerExtensions.cs プロジェクト: xyyhqq/eXpand
        public static void AssignQuartzTrigger(this CronTriggerImpl cronTrigger, IXpandCronTrigger trigger)
        {
            cronTrigger.MisfireInstruction   = (int)trigger.MisfireInstruction;
            cronTrigger.CronExpressionString = trigger.CronExpression;
            // http://devexpress.com/Support/Center/p/S133718.aspx?searchtext=timezoneid+number
            // Fetches the Windows name of the specified Scheduler time zone from the registry.
            String timeZoneKey = RegistryTimeZoneProvider.GetRegistryKeyNameByTimeZoneId(trigger.TimeZone);

            cronTrigger.TimeZone = TimeZoneInfo.FindSystemTimeZoneById(timeZoneKey);
        }