This project has moved. For the latest updates, please go here.
1

Closed

Can not create a CustomTrigger!

description

Hi~
I want to registe an one time task ,so I try to use customTrigger.
But I failed to create customTrigger by the code like :
CustomTrigger custTrigger = (CustomTrigger)CustomTrigger.CreateTrigger(TaskTriggerType.Custom);
the returned value is null!
I import your dll by NuGet ,and the version is 2.5.26

Look forward to your reply!
Closed Jun 8 at 2:27 PM by dahall
CustomTrigger is a read-only trigger and cannot be used to create a new trigger. Please read the documentation under the Documentation area, specifically all the detail for creating triggers. You should be using a TimeTrigger.

comments

fellowming wrote Jun 9 at 2:19 AM

TimeTrigger works for me.
Many Thanks