acdream/src/AcDream.Plugin.Abstractions/RecoveryAutomation.cs

21 lines
735 B
C#

namespace AcDream.Plugin.Abstractions;
/// <summary>Result of one explicit operator recovery operation.</summary>
public readonly record struct PluginRecoveryResult(
bool Accepted,
int PreviousCount = 0,
int CurrentCount = 0,
string Message = "");
/// <summary>
/// Narrow debug/recovery access to host-owned action state. Normal plugin
/// policy must wait for authoritative receipts; these operations exist for
/// VTank-compatible operator commands that deliberately recover a stuck
/// client-side reference.
/// </summary>
public interface IRecoveryAutomation
{
PluginRecoveryResult ClearOneBusyReference() => new(
Accepted: false,
Message: "Action recovery is unavailable on this host.");
}