Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: Exception thrown in case of Trigger type "TimeTrigger"

$
0
0
I just debug the code and got to know that Add(Trigger unboundTrigger) of TriggerCollection class, sets it to null while calling Bind(v2Def). Please check the below snaps for the same.

Before Call
https://drive.google.com/open?id=0B5gc8M5EOKshMThSek9IQ1hBbzg

After Call
https://drive.google.com/open?id=0B5gc8M5EOKshTkxYY01WYnhDNlk

I have scenario in which I clear all the triggers and add the triggers again to the Task. Some of them are the existing triggers while some can be new. In case of existing trigger(say T1), T1 does get added but with the time set as current Time(and not the future once), then I do different things and at last I call RegisterTaskDefinition.

At this moment, the StartBoundary of T1 is less than Current Time. Thus, the exception is thrown.

Now. Please suggest a way to clear the existing triggers and add triggers again such that this issue does not occur.

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>