Table of Contents

Class CommandRunnerResult

Namespace
OneImlx.Terminal.Commands.Runners
Assembly
OneImlx.Terminal.dll

The command runner result.

public class CommandRunnerResult : IAsyncDisposable
Inheritance
CommandRunnerResult
Implements
Inherited Members

Properties

IsDisposed

Determines whether the result is disposed.

public bool IsDisposed { get; protected set; }

Property Value

bool

IsProcessed

Determines whether the result is processed.

public bool IsProcessed { get; protected set; }

Property Value

bool

NoProcessing

Creates a default runner result that does not perform any additional processing.

public static CommandRunnerResult NoProcessing { get; }

Property Value

CommandRunnerResult

Methods

DisposeAsync()

Disposes the managed resources.

public virtual ValueTask DisposeAsync()

Returns

ValueTask

Remarks

Derived implementation should call base class implementation to mark the result as disposed, see IsDisposed.

ProcessAsync(CommandRunnerContext, ILogger?)

Processes the runner result asynchronously.

public virtual Task ProcessAsync(CommandRunnerContext context, ILogger? logger = null)

Parameters

context CommandRunnerContext

The runner context.

logger ILogger

The logger.

Returns

Task

Remarks

Derived implementation should call base class implementation to mark the result as processed, see IsProcessed.