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 IBehaviorResultProperties
Section titled “Properties”Gets the stable outcome code when one was supplied.
string? Code { get; }Property Value
Section titled “Property Value”Gets the structured fault details when the outcome is not successful.
BehaviorFault? Fault { get; }Property Value
Section titled “Property Value”HasValue
Section titled “ HasValue”Gets a value indicating whether the result carries a payload value.
bool HasValue { get; }Property Value
Section titled “Property Value”IsSuccess
Section titled “ IsSuccess”Gets a value indicating whether the result represents a successful outcome.
bool IsSuccess { get; }Property Value
Section titled “Property Value”Message
Section titled “ Message”Gets the human-readable outcome message.
string Message { get; }Property Value
Section titled “Property Value”Status
Section titled “ Status”Gets the transport-neutral outcome status.
BehaviorResultStatus Status { get; }Property Value
Section titled “Property Value”Gets the boxed payload value when one was supplied.
object? Value { get; }