using System; namespace SK.Framework { /// /// 事件链接口 /// public interface IActionChain { IActionChain Append(IAction action); IActionChain Begin(); void Stop(); void Pause(); void Resume(); bool IsPaused { get; } IActionChain StopWhen(Func predicate); IActionChain OnStop(Action action); IActionChain SetLoops(int loops); } }