Skip to content

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.

public readonly struct InteractionResult

Creates a successful result with the given value.

public static InteractionResult Success(object? value)
  • value (object): The interaction result value.

InteractionResult - A handled InteractionResult.

Gets whether the handler handled the request.

public bool Handled { get; }

bool

Gets the result value. Only meaningful when Handled is true.

public object? Value { get; }

object

Sentinel value indicating the handler did not handle the request.

public static readonly InteractionResult Unhandled

InteractionResult