Skip to content

ReplTestHost

In-memory orchestrator for opening and coordinating multiple REPL test sessions.

public sealed class ReplTestHost : IAsyncDisposable

Create(Func<ReplApp>, Action<ReplScenarioOptions>?)

Section titled “Create(Func<ReplApp>, Action<ReplScenarioOptions>?)”
public static ReplTestHost Create(Func<ReplApp> appFactory, Action<ReplScenarioOptions>? configure = null)
  • appFactory (Func<ReplApp>)
  • configure (Action<ReplScenarioOptions>)

ReplTestHost

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.

OpenSessionAsync(SessionDescriptor?, CancellationToken)

Section titled “OpenSessionAsync(SessionDescriptor?, CancellationToken)”
public ValueTask<ReplSessionHandle> OpenSessionAsync(SessionDescriptor? descriptor = null, CancellationToken cancellationToken = default)

ValueTask<ReplSessionHandle>

public ValueTask<IReadOnlyList<SessionSnapshot>> QuerySessionsAsync(CancellationToken cancellationToken = default)

ValueTask<IReadOnlyList<SessionSnapshot>>