Skip to content

IReplInteractionHandler

Handles interaction requests in a chain-of-responsibility pipeline. Implementations pattern-match on the InteractionRequest type and return Success(object) for requests they handle, or Unhandled to delegate to the next handler.

public interface IReplInteractionHandler

TryHandleAsync(InteractionRequest, CancellationToken)

Section titled “TryHandleAsync(InteractionRequest, CancellationToken)”

Attempts to handle an interaction request.

ValueTask<InteractionResult> TryHandleAsync(InteractionRequest request, CancellationToken cancellationToken)

ValueTask<InteractionResult> - Success(object) with the result value if handled, or Unhandled to delegate to the next handler.