本文整理汇总了C#中IState.GetName方法的典型用法代码示例。如果您正苦于以下问题:C# IState.GetName方法的具体用法?C# IState.GetName怎么用?C# IState.GetName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IState
的用法示例。
在下文中一共展示了IState.GetName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WriteStateName
public void WriteStateName(IState state)
{
Console.WriteLine(state.GetName());
}
示例2: IsFlowContinued
/// <summary>
/// Tests if flow is continued.
/// </summary>
/// <param name="state"></param>
/// <param name="status"></param>
/// <param name="stepExecution"></param>
/// <returns></returns>
protected bool IsFlowContinued(IState state, FlowExecutionStatus status, StepExecution stepExecution)
{
var continued = state != null && !status.Equals(FlowExecutionStatus.Stopped);
if (stepExecution != null)
{
bool? reRun = (bool?)stepExecution.ExecutionContext.Get("batch.restart");
bool? executed = (bool?)stepExecution.ExecutionContext.Get("batch.executed");
if ((executed == null || !executed.Value) && reRun != null && reRun.Value
&& status.Equals(FlowExecutionStatus.Stopped) && !state.GetName().EndsWith(stepExecution.StepName))
{
continued = true;
}
}
return continued;
}