Skip to content

IRemoteReplBackend

Application adapter used by the protocol, independent of any engine or DI container.

public interface IRemoteReplBackend : IAsyncDisposable

Describes the exposed command graph.

ValueTask<RemoteCommandGraph> DescribeAsync(CancellationToken cancellationToken)

ValueTask<RemoteCommandGraph>

ExecuteAsync(RemoteInvocationRequest, CancellationToken)

Section titled “ExecuteAsync(RemoteInvocationRequest, CancellationToken)”

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

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.

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

ValueTask<IRemoteTerminalSession>