using System; namespace QFSW.QC.Actions { /// /// Gets the ActionContext that the command is currently being invoked on. /// public class GetContext : ICommandAction { private readonly Action _onContext; public bool IsFinished => true; public bool StartsIdle => false; /// Action to invoke when the context is retrieved. public GetContext(Action onContext) { _onContext = onContext; } public void Start(ActionContext context) { } public void Finalize(ActionContext context) { _onContext(context); } } }