/// <summary>
 /// 是否不能切换:在所有状态机中全部不满足
 /// </summary>
 /// <typeparam name="T">数据操作类型</typeparam>
 /// <param name="machine">状态机</param>
 /// <param name="current">当前状态</param>
 /// <param name="expect">期望状态</param>
 /// <returns></returns>
 public static ApiResult <bool> CanNot <T>(SimpleStatusMachine <T> machine, T current, T expect) where T : struct, IConvertible
 {
     return(CanNot(new[] { machine }, current, expect));
 }
Exemple #2
0
 /// <summary>
 /// 是否不能切换:在所有状态机中全部不满足
 /// </summary>
 /// <typeparam name="T">数据操作类型</typeparam>
 /// <param name="machine">状态机</param>
 /// <param name="current">当前状态</param>
 /// <param name="expect">期望状态</param>
 /// <returns></returns>
 public static ApiResult <bool> CanNot <T>(this SimpleStatusMachine <T> machine, T current, T expect) where T : struct, IConvertible
 {
     return(SimpleStatusMachineHelper.CanNot <T>(machine, current, expect));
 }