public sealed record PrivilegedActionRequest : IEquatable<PrivilegedActionRequest> One run of a declared privileged action.
Parameters
ActionThe declaration to run; the provider must have been created with it.
ArgumentsThe arguments after the verb. They are passed as an argument vector, never through a shell.
Constructors
PrivilegedActionRequest
public PrivilegedActionRequest(PrivilegedActionDeclaration Action, ImmutableArray<string> Arguments) One run of a declared privileged action.
Parameters
ActionThe declaration to run; the provider must have been created with it.
ArgumentsThe arguments after the verb. They are passed as an argument vector, never through a shell.
Properties
Action
public PrivilegedActionDeclaration Action { get; init; } The declaration to run; the provider must have been created with it.
Arguments
public ImmutableArray<string> Arguments { get; init; } The arguments after the verb. They are passed as an argument vector, never through a shell.
Output
public Action<PrivilegedActionOutput>? Output { get; init; } Receives the program's output lines while it runs, one call at a time on a worker thread. The program blocks while the callback runs, so a slow callback slows the program rather than buffering its output.