Skip to content

ReplAppRemoteBackend

Adapts an existing ReplApp, borrowing its application and root service provider.

public sealed class ReplAppRemoteBackend : IRemoteReplBackend, IAsyncDisposable

ReplAppRemoteBackend(ReplApp, IServiceProvider?)

Section titled “ReplAppRemoteBackend(ReplApp, IServiceProvider?)”

Creates an adapter. The caller retains application and root-provider ownership.

public ReplAppRemoteBackend(ReplApp app, IServiceProvider? services = null)

Describes the exposed command graph.

public ValueTask<RemoteCommandGraph> DescribeAsync(CancellationToken cancellationToken)

ValueTask<RemoteCommandGraph>

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public ValueTask DisposeAsync()

ValueTask - A task that represents the asynchronous dispose operation.

ExecuteAsync(RemoteInvocationRequest, CancellationToken)

Section titled “ExecuteAsync(RemoteInvocationRequest, CancellationToken)”

Runs a command using the application’s ordinary invocation pipeline.

public ValueTask<RemoteExecutionResult> ExecuteAsync(RemoteInvocationRequest request, CancellationToken cancellationToken)

ValueTask<RemoteExecutionResult>

OpenTerminalAsync(RemoteTerminalOptions, Func<string, CancellationToken, ValueTask>, CancellationToken)

Section titled “OpenTerminalAsync(RemoteTerminalOptions, Func<string, CancellationToken, ValueTask>, CancellationToken)”

Starts a terminal whose output is delivered through the supplied asynchronous sink.

public ValueTask<IRemoteTerminalSession> OpenTerminalAsync(RemoteTerminalOptions options, Func<string, CancellationToken, ValueTask> writeOutput, CancellationToken cancellationToken)

ValueTask<IRemoteTerminalSession>