This commit is contained in:
Даниил Заикин
2026-06-17 20:44:53 +03:00
parent 9d153773c2
commit b133e7c656
1880 changed files with 244545 additions and 0 deletions
@@ -0,0 +1,28 @@
using System;
namespace QFSW.QC.Actions
{
/// <summary>
/// Gets the <c>ActionContext</c> that the command is currently being invoked on.
/// </summary>
public class GetContext : ICommandAction
{
private readonly Action<ActionContext> _onContext;
public bool IsFinished => true;
public bool StartsIdle => false;
/// <param name="onContext">Action to invoke when the context is retrieved.</param>
public GetContext(Action<ActionContext> onContext)
{
_onContext = onContext;
}
public void Start(ActionContext context) { }
public void Finalize(ActionContext context)
{
_onContext(context);
}
}
}