InteractionResult
Result of an TryHandleAsync(InteractionRequest, CancellationToken) call.
Either Handled is true and Value contains the result,
or Handled is false and the pipeline moves to the next handler.
- Kind:
Struct - Namespace: Repl.Interaction
- Assembly:
Repl.Core - Source: src/Repl.Core/Interaction/InteractionResult.cs
Signature
Section titled “Signature”public readonly struct InteractionResultMethods
Section titled “Methods”Success(object?)
Section titled “Success(object?)”Creates a successful result with the given value.
public static InteractionResult Success(object? value)Parameters
Section titled “Parameters”value(object): The interaction result value.
Returns
Section titled “Returns”InteractionResult - A handled InteractionResult.
Properties
Section titled “Properties”Handled
Section titled “Handled”Gets whether the handler handled the request.
public bool Handled { get; }Returns
Section titled “Returns”Gets the result value. Only meaningful when Handled is true.
public object? Value { get; }Returns
Section titled “Returns”Fields
Section titled “Fields”Unhandled
Section titled “Unhandled”Sentinel value indicating the handler did not handle the request.
public static readonly InteractionResult Unhandled