Skip to content

Interface IBehaviorResult

Namespace: Cephalon.Abstractions.Behaviors
Assembly: Cephalon.Abstractions.dll

Describes a structured behavior outcome that can be projected into transport-specific responses.

public interface IBehaviorResult

Gets the stable outcome code when one was supplied.

string? Code { get; }

string?

Gets the structured fault details when the outcome is not successful.

BehaviorFault? Fault { get; }

BehaviorFault?

Gets a value indicating whether the result carries a payload value.

bool HasValue { get; }

bool

Gets a value indicating whether the result represents a successful outcome.

bool IsSuccess { get; }

bool

Gets the human-readable outcome message.

string Message { get; }

string

Gets the transport-neutral outcome status.

BehaviorResultStatus Status { get; }

BehaviorResultStatus

Gets the boxed payload value when one was supplied.

object? Value { get; }

object?