예제 #1
0
        internal static string GetCompletedStateName(StateActivity state)
        {
            Debug.Assert(state != null);
            StateActivity rootState = GetRootState(state);

            return((string)rootState.GetValue(StateMachineWorkflowActivity.CompletedStateNameProperty));
        }
예제 #2
0
        internal static StateMachineExecutionState Get(StateActivity state)
        {
            Debug.Assert(StateMachineHelpers.IsRootState(state));
            StateMachineExecutionState executionState = (StateMachineExecutionState)state.GetValue(StateActivity.StateMachineExecutionStateProperty);

            Debug.Assert(executionState != null);
            return(executionState);
        }
예제 #3
0
        internal static string GetInitialStateName(StateActivity state)
        {
            StateActivity rootState = GetRootState(state);

            return((string)rootState.GetValue(StateMachineWorkflowActivity.InitialStateNameProperty));
        }
 internal static StateMachineExecutionState Get(StateActivity state)
 {
     Debug.Assert(StateMachineHelpers.IsRootState(state));
     StateMachineExecutionState executionState = (StateMachineExecutionState)state.GetValue(StateActivity.StateMachineExecutionStateProperty);
     Debug.Assert(executionState != null);
     return executionState;
 }
예제 #5
0
 internal static StateMachineExecutionState Get(StateActivity state)
 {
     return((StateMachineExecutionState)state.GetValue(StateActivity.StateMachineExecutionStateProperty));
 }
 internal static StateMachineExecutionState Get(StateActivity state)
 {
     return (StateMachineExecutionState) state.GetValue(StateActivity.StateMachineExecutionStateProperty);
 }