private void OnStateComplete(NativeActivityContext context, System.Activities.ActivityInstance completedInstance, string result)
 {
     if (StateMachineIdHelper.IsAncestor("0", result))
     {
         int childStateIndex = StateMachineIdHelper.GetChildStateIndex("0", result);
         context.ScheduleFunc <StateMachineEventManager, string>(this.internalStateFuncs[childStateIndex], this.eventManager.Get(context), this.onStateComplete, null);
     }
 }
예제 #2
0
 void OnStateComplete(NativeActivityContext context, ActivityInstance completedInstance, string result)
 {
     if (StateMachineIdHelper.IsAncestor(RootId, result))
     {
         int index = StateMachineIdHelper.GetChildStateIndex(RootId, result);
         context.ScheduleFunc <StateMachineEventManager, string>(
             this.internalStateFuncs[index],
             this.eventManager.Get(context),
             this.onStateComplete);
     }
 }