PrivilegedActionRequest record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record PrivilegedActionRequest : IEquatable<PrivilegedActionRequest>

Inherits or implements IEquatable.

One run of a declared privileged action.

Parameters

Action

The declaration to run; the provider must have been created with it.

Arguments

The 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

Action

The declaration to run; the provider must have been created with it.

Arguments

The 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.