Example #1
0
 /// <summary>
 /// 创建一个页面状态.
 /// </summary>
 /// <param name="name">页面状态的名称.</param>
 /// <param name="startAction">开始时的行为.</param>
 /// <param name="completedAction">页面状态完成后的行为.</param>
 /// <param name="completedStateSetting">页面状态完成后会转到的状态的名称.</param>
 /// <param name="failedAction">页面状态失败后的行为.</param>
 /// <param name="failedStateSetting">页面状态失败后会转到的状态的名称.</param>
 /// <param name="condition">成此页面状态的条件.</param>
 /// <param name="timeout">超时秒数.</param>
 public WebPageState(string name, WebPageAction startAction = null, WebPageAction completedAction = null, WebPageNextStateSetting completedStateSetting = null, WebPageAction failedAction = null, WebPageNextStateSetting failedStateSetting = null, WebPageCondition condition = null, int timeout = 0)
     : this(name, new WebPageAction[] { startAction }, new WebPageAction[] { completedAction }, completedStateSetting, new WebPageAction[] { failedAction }, failedStateSetting, new WebPageCondition[] { condition }, 0)
 {
 }
Example #2
0
 /// <summary>
 /// 创建一个页面状态.
 /// </summary>
 /// <param name="name">页面状态的名称.</param>
 /// <param name="startActions">开始时的行为.</param>
 /// <param name="completedActions">页面状态完成后的行为.</param>
 /// <param name="completedStateSetting">页面状态完成后会转到的状态的名称.</param>
 /// <param name="failedActions">页面状态失败后的行为.</param>
 /// <param name="failedStateSetting">页面状态失败后会转到的状态的名称.</param>
 /// <param name="conditions">成此页面状态的条件.</param>
 /// <param name="timeout">超时秒数.</param>
 public WebPageState(string name, WebPageAction[] startActions = null, WebPageAction[] completedActions = null, WebPageNextStateSetting completedStateSetting = null, WebPageAction[] failedActions = null, WebPageNextStateSetting failedStateSetting = null, WebPageCondition[] conditions = null, int timeout = 0)
Example #3
0
        /// <summary>
        /// 创建一个页面状态.
        /// </summary>
        /// <param name="name">页面状态的名称.</param>
        /// <param name="startActions">开始时的行为.</param>
        /// <param name="completedActions">页面状态完成后的行为.</param>
        /// <param name="completedStateSetting">页面状态完成后会转到的状态的名称.</param>
        /// <param name="failedActions">页面状态失败后的行为.</param>
        /// <param name="failedStateSetting">页面状态失败后会转到的状态的名称.</param>
        /// <param name="conditions">成此页面状态的条件.</param>
        /// <param name="timeout">超时秒数.</param>
        public WebPageState(string name, WebPageAction[] startActions, WebPageAction[] completedActions, WebPageNextStateSetting completedStateSetting, WebPageAction[] failedActions, WebPageNextStateSetting failedStateSetting, WebPageCondition[] conditions, int timeout)
#endif
            : base(name, startActions, completedActions, completedStateSetting, failedActions, failedStateSetting, conditions, timeout)
        {
        }