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.
- Kind:
Interface - Namespace: Repl.Interaction
- Assembly:
Repl.Core - Source: src/Repl.Core/Interaction/IReplInteractionHandler.cs
Signature
Section titled “Signature”public interface IReplInteractionHandlerDerived Classes
Section titled “Derived Classes”Methods
Section titled “Methods”TryHandleAsync(InteractionRequest, CancellationToken)
Section titled “TryHandleAsync(InteractionRequest, CancellationToken)”Attempts to handle an interaction request.
ValueTask<InteractionResult> TryHandleAsync(InteractionRequest request, CancellationToken cancellationToken)Parameters
Section titled “Parameters”request(InteractionRequest): The interaction request.cancellationToken(CancellationToken): Cancellation token.
Returns
Section titled “Returns”ValueTask<InteractionResult> - Success(object) with the result value if handled,
or Unhandled to delegate to the next handler.