Interface IOsxElevationLauncher
Alternative macOS elevation mechanism. When assigned to Fluxzy.Misc.ProcessUtils.OsxElevationLauncher, it replaces the built-in flow (system authorization dialog, sudo) entirely.
public interface IOsxElevationLauncher
Methods
StartElevatedAsync(string, string[], bool, string, bool)
Starts commandName as root. When redirectStdOut
is true, the returned process must expose live stdin/stdout. Returns null when
elevation is declined or unavailable.
Task<Process?> StartElevatedAsync(string commandName, string[] args, bool redirectStdOut, string askPasswordPrompt, bool redirectStandardError)
Parameters
commandNamestringargsstring[]redirectStdOutboolaskPasswordPromptstringredirectStandardErrorbool