void ScheduleTriggers(NativeActivityContext context)
{
if (!this.IsFinal)
{
// Final state need not condition evaluation bookmark.
this.AddEvaluateConditionBookmark(context);
}
if (this.internalTransitions.Count > 0)
{
foreach (InternalTransition transition in this.internalTransitions)
{
context.ScheduleActivity(transition.Trigger, this.onTriggerComplete);
}
this.currentRunningTriggers.Set(context, this.currentRunningTriggers.Get(context) + this.internalTransitions.Count);
}
}