/// <summary> /// Returns the workflow variable from the TransitionContext. /// </summary> /// <typeparam name="TVariable"></typeparam> /// <param name="transitionContext"></param> /// <returns></returns> public static TVariable ReturnVariable <TVariable>( this TransitionContext transitionContext ) where TVariable : WorkflowVariableBase { return(transitionContext.GetVariable <TVariable>( KeyBuilder.ToKey(typeof(TVariable)) )); }
public T GetVariable <T>(string key) where T : WorkflowVariableBase { if (_triggerContext == null) { return(null); } return(_triggerContext.GetVariable <T>(key)); }