namespace Contracts; /// What the Shim (default ALC) sees of a payload living in a collectible ALC. public interface IPayload { /// Address of an [UnmanagedCallersOnly] stdcall (int,int)->int method, or 0 with an error. nint GetUcoPointer(out string? error); /// Marshal.GetFunctionPointerForDelegate of a stdcall (int,int)->int delegate the payload keeps alive. nint GetDelegatePointer(); /// Does the work selected by the mode bits; returns a short description. string Work(int mode); /// Stops everything Work started. void Shutdown(); }